|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP mail form?????
I have read most of the posts and used what i could. my problem is that when i get the e-mail it has no content, the subject is there and thats it. here is the code im using:
---feedback.html--- <HTML> <HEAD> <TITLE>HTML Form</TITLE> </HEAD> <BODY> <FORM method=post action="sendmail.php"> Email: <INPUT name="email" type="text"><br> Message:<br> <TEXTAREA name="message"> </textarea><br> <input type=submit> </FORM> </BODY> </HTML> ---sendmail.php--- <?php ob_start(); $mailto = "info@fs3d.com"; $subject = "Feedback Form Results"; $mailheaders = "From: $email"; //Now send the email using the above variables mail($mailto, $subject, $email, $message, $mailheaders); header("Location: http://www.fs3d.com"); ob_flush();?> Thanks in advance, Dave Last edited by dfano : April 14th, 2003 at 12:23 PM. |
|
#2
|
|||
|
|||
|
Is this a “Register Globals” problem?
Try echoing "$message" in sendmail.php to make sure you are passing the text from the form in to the script correctly. If not, replace $message with $_POST[‘message’] and see what happens. If this is the fix, you need to do the same with the “From" email address. Cheers Baines |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > PHP mail form????? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|