hi
this is not working.how to do that.....
form1
<form method="get" action="email2.php">
<table>
<tr><td>Subject:</td><td><input type="text" name="subject" size="70"></td></tr>
<tr><td></td><td><textarea name="body1" cols="70" rows="20"></textarea></td></tr>
<tr><td><input type="submit" name="send" value="submit"></td></tr>
</table>
</form>
php page
<form>
<?php
$subject1=$_REQUEST;
$message=$_REQUEST;
$hostname = "localhost";
$username = "splendor_lydia";
$password = "jesus";
$dbid = "splendor_aletheia";
$link=mysql_connect($hostname, $username, $password);
mysql_select_db($dbid) or die("unable to connect");
if (isset($_REQUEST))
{
$subject="Test mail";
$from="yourname@domain.com";
$query="select email,name from member" or die("ERROR:".mysql_error());
$result=mysql_query($query);
while($row=mysql_fetch_array($result)){
$email=$row[0];
$name = $row[1];
email($email,$subject,$message,$from);
echo "Thanks";
}
?>
</form>