Jump to content

PHP newbie here - PLEASE help me with a specific problem


SS

Recommended Posts

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" );

?>

 

 

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.  :confused:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.