|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#31
|
||||
|
||||
|
That's a relief then
I didn't think it was something wrong with your code.. Glad to hear it! Let me know what happens when its fixed |
|
#32
|
|||
|
|||
|
This code works
---------------------------------------- <?php ob_start(); $mailto = "dfano@fs3d.com"; $subject = "Feedback Form Results"; $mailheaders = "From: $email"; $email = $_POST['email']; $message = $_POST['message']; //Now send the email using the above variables mail($mailto, $subject, $email, $message, $mailheaders); header('Location: http://www.fs3d.com'); ob_flush();?> ----------------------------------------- but in the body of the e-mail i get the results of the data entered in the "email" form element. as for the message it gets added to the subject of the e-mail after "Feedback Form Results". Thanks for the help, Dave at least im getting something now!!! |
|
#33
|
||||
|
||||
|
You're right, at least you're getting something now!
put your format like this: Code:
mail($to, $subject, $body, $mailheaders); In other words: To, Subject, the body of the email, and who it's from and that will fix it ![]() |
|
#34
|
|||
|
|||
|
Top Stuff
should i change the corresponding code in the top part of the script also to use the same variable names.
Dave |
|
#35
|
||||
|
||||
|
No need to change the variable names.. just use that format
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Discussion: A Simple Feedback Form With PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|