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( "name@email.com", "Email Contact Form", $message, "From: $email" ); header( "Location: thankyou.html" ); ?> Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.