| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2009
Posts: 21
|
contact form sending blank email?
Can someone please tell me why my contact form is sending blank emails? Iv posted my php for anyone that has time to help. due having not hitting the magic 15 posts yet i taken out my url and email. thanks PHP Code:
|
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Feb 2003
Location: York, UK
Posts: 21
|
I don't use <<<EOD very often, but maybe you can't stick variables in them. Try: Code:
|
|
|
|
#5 (permalink) | |
|
Registered User
Join Date: Nov 2009
Posts: 21
|
Quote:
Afraid that dosnt work either. could it hav anything to do with this? HTML Code:
|
|
|
|
|
#6 (permalink) |
|
FUNKTION GALLERY
Join Date: Jun 2008
Location: Toronto
Posts: 2,393
|
in your HTML, your <input name="xxxxx"> needs to match what you are looking for in the POST. Code:
(note: your <input name="Phone Number"> should be rewritten without spaces) Everything I've bolded from the above code needs to match whats here (bolded): Code:
which, most don't. also a couple lines further you've renamed your variables again. Code:
$phonenumberfield should actually be $phonefield and $yourmessagefield should be $messagefield |
|
|
|
#7 (permalink) |
|
Ruler of Planet Houston
Join Date: Feb 2010
Posts: 139
|
the names on your form don't match your $_POSTs (phone number, comments)and having a 2 word name will break the form anyway - change name="phone number" to name="phone" and name="comments" to name="message" then try again Doh! Beaten to it |
|
|
|
#8 (permalink) |
|
Registered User
Join Date: Nov 2009
Posts: 21
|
I think iv tryed what you guys suggested but im still recieving a email with no info. name: email: phone number: your message: HTML Code:
PHP Code:
|
|
![]() |
|