mail function
Posted: Tue Dec 28, 2004 6:31 pm
well..ive got a contact style mail thingy (technical, i know) on my website..and when i get an email sent to me from my site..it comes up as being sent by "anonymous@ev1..blah" ..that doesnt bother me..what does is that i get no text or anything in the email..there is no body to it /cry.gif' class='bbc_emoticon' alt=':(' />
HTML (contact.php)
PHP (comments.php)
im stumped /sleepy.gif' class='bbc_emoticon' alt='(sleep)' /> [/color]
HTML (contact.php)
Code: Select all
<form method='post' action='comments.php'>E-Mail: <INPUT TYPE='TEXT' NAME='email' size=30><br>Subject: <INPUT TYPE='TEXT' NAME='subject' size=30><br>Comments: <TEXTAREA NAME='comments' ROWS=10 COLS=30></TEXTAREA><br><input type='submit' name='submit' value='submit'></form>PHP (comments.php)
Code: Select all
<?
mail("vercz@killanet.net", "$subject", "$comments", "$email");
header ("Location: http://vercz.killagraphix.com");
?>