SS Posted March 8, 2011 Share Posted March 8, 2011 I've been searching for a couple of days on google using keywords, trying to figure out why this form sends blank emails. I've found several different ways to write something like this, including what's below, but for the life of me I haven't figured it out. Can anyone help a brother out? <?php $email = $_REQUEST['email']; $message = $_REQUEST['date']; $message .= $_REQUEST['location']; $message .= $_REQUEST['quantitymodel']; mail( "[email protected]", "Email Contact Form", $message, "From: $email" ); header( "Location: thankyou.html" ); ?> Link to comment https://forums.phpfreaks.com/topic/229956-php-newbie-here-please-help-me-with-a-specific-problem/ Share on other sites More sharing options...
trq Posted March 8, 2011 Share Posted March 8, 2011 Can we see the form that goes with this? Link to comment https://forums.phpfreaks.com/topic/229956-php-newbie-here-please-help-me-with-a-specific-problem/#findComment-1184361 Share on other sites More sharing options...
kenrbnsn Posted March 8, 2011 Share Posted March 8, 2011 What does the form look like? Please enclose your code in tags. Ken Link to comment https://forums.phpfreaks.com/topic/229956-php-newbie-here-please-help-me-with-a-specific-problem/#findComment-1184362 Share on other sites More sharing options...
SS Posted March 8, 2011 Author Share Posted March 8, 2011 Haha..kind of dim here, but when I went to copy the form, the problem hit me. I had changed the names in it, and forgot to change them back (meaning they weren't jiving with the names in the php script). I've been going nuts here in the past few days, and my mind must have snapped. Thank you guys. I read on another thread that topics should be marked as solved, but don't see how to mark this. Link to comment https://forums.phpfreaks.com/topic/229956-php-newbie-here-please-help-me-with-a-specific-problem/#findComment-1184365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.