I want that in following script when digitar in the field of the
corresponding mail, automaticamente it opens outlook to send a mail to
him to that personnel.
<HEAD>
<TITLE>leer.php</TITLE>
<Link rel= "stylesheet" href="default.css">
</HEAD>
<BODY>
<h1><div align="center">Phones</div></h1>
<br>
<br>
<?
echo "<form name='listado' method=post action='personal2.php'>";
mysql_connect("localhost","fime","itg01");
$result=mysql_db_query("auth","select * from Personal order by nombre");
$number = MySQL_NUM_ROWS($result);
echo"<table width=500 align=center bgcolor = cccccc border=9 cellpadding=7 cellspacing=7>
<tr>
<td><br><input type=submit value=«><input type=submit value=»>
<b>Nombre</td></b>
<td><br> <input type=submit value=«><input type=submit name=Inter value=»>
<b>Interno</b><td><br><b>mail</b></td>
</tr>";
while($row=mysql_fetch_row($result)){
echo"<tr>
<td>$row[1]</td><td>$row[4]</td>
<td>$row[5]</td>
</tr>";
}
echo"</table>";
?>
Since I do so that the data order according to the field that
I select, or internal name or?
Help !!!!
Moderator: General Moderators
you can have multiple instances of <input type="submit"> in a form but only the activated one's value will be transmitted, e.g.
&laquo and &raquo are entities ( « » ) so he might use them there. But you should quote all properties of an html-element, e.g.but take care of escaping those quotes as long as you're using echo "...".
There are some other odd things about your html-structure I don't really understand but anyway...
php cannot access the client's mail-prg, but you can use the mailto:-protocol. With this the clientbrowser is asked to open the mailprg. But the user has to confirm the mail.
Via javascript you're able to set receipient, topic and body of the mail.
Search for javascript and mailto e.g. with google
Code: Select all
<html>
<body>
<pre><?php print_r($_POST); ?></pre>
<hr />
<form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="submit" name="mode" value="something" /><br />
<input type="submit" name="mode" value="something else" /><br />
<input type="submit" name="mode" value="something completely different" /><br />
</form>
</body>
</html>Code: Select all
&lt;input type="submit" value="&amp;laquo;" /&gt;&lt;input type="submit" value="&amp;raquo;" /&gt;There are some other odd things about your html-structure I don't really understand but anyway...
php cannot access the client's mail-prg, but you can use the mailto:-protocol. With this the clientbrowser is asked to open the mailprg. But the user has to confirm the mail.
Via javascript you're able to set receipient, topic and body of the mail.
Search for javascript and mailto e.g. with google