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( "name@email.com", "Email Contact Form",

$message, "From: $email" );

header( "Location: thankyou.html" );

?>

 

 

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.