Hi, I have the following email form on contact.htm
<FORM method=post action="sendmail.php">
Email: <INPUT name="email" type="text"><br>
Message:<br>
<TEXTAREA name="message">
</textarea><br>
<input type=submit>
</FORM>
The details from this are sent to sendmail.php, below
<?
mail( "root@mydomain.com", "Feedback Form Results",
"$message", "From: $email", "mail.mydomain.com" );
header( "Location: );
?>
The email reaches the email box and the subject "Feedback Form Results" appears, however "unknown" is displayed in the "from" box and there is nothing in the message part of the email.
Any help is appreciated
Mark
<FORM method=post action="sendmail.php">
Email: <INPUT name="email" type="text"><br>
Message:<br>
<TEXTAREA name="message">
</textarea><br>
<input type=submit>
</FORM>
The details from this are sent to sendmail.php, below
<?
mail( "root@mydomain.com", "Feedback Form Results",
"$message", "From: $email", "mail.mydomain.com" );
header( "Location: );
?>
The email reaches the email box and the subject "Feedback Form Results" appears, however "unknown" is displayed in the "from" box and there is nothing in the message part of the email.
Any help is appreciated
Mark