loonatik
06-07-2003, 05:47 PM
I'm using a simple mail form to mail a name and email address to a yahoo account.
<?
if($submit){
$body="
Name: $name
Email: $email
";
echo "sent $name $email";
mail("me@yahoo.com","testing",$body,"From:$email");
}
else{
echo "<form action='mail.php3' method='post'>";
echo "name <input type='text' name='name'><BR>";
echo "email <input type='text' name='email'><BR>";
echo "<input type='submit' name='submit' value='submit'>";
echo "</form>";
}
?>
The name is supposed to show up as:
Name: Some Name
Email: somebody@where.com
Instead, in yahoo everything appears on the same line continuously. I've tried adding spaces and extra line breaks but no effect. This is only in yahoo. When I test with horde, it is exactly what I want. Anyone every hv the same prob?
Thanks.
<?
if($submit){
$body="
Name: $name
Email: $email
";
echo "sent $name $email";
mail("me@yahoo.com","testing",$body,"From:$email");
}
else{
echo "<form action='mail.php3' method='post'>";
echo "name <input type='text' name='name'><BR>";
echo "email <input type='text' name='email'><BR>";
echo "<input type='submit' name='submit' value='submit'>";
echo "</form>";
}
?>
The name is supposed to show up as:
Name: Some Name
Email: somebody@where.com
Instead, in yahoo everything appears on the same line continuously. I've tried adding spaces and extra line breaks but no effect. This is only in yahoo. When I test with horde, it is exactly what I want. Anyone every hv the same prob?
Thanks.