Jump to content

totallytotallyamazing

New Members
  • Posts

    1
  • Joined

  • Last visited

totallytotallyamazing's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you PFMaBiSmAd and nutt318! This post helped me out! Below is my code with the form vars declared as php vars: <?php if(isset($_POST['email'])) { // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = "totallytotallyamazing@gmail.com"; $email_subject = "TTA FILL-IN FORM"; // DECLARE FORM VARS AS PHP VARS $name = $_POST['name']; $email = $_POST['email']; $url = $_POST['url']; $comment = $_POST['comment']; $email_message .= "Name: ".($name)."\n"; $email_message .= "Email: ".($email)."\n"; $email_message .= "URL: ".($url)."\n"; $email_message .= "Comments: ".($comment)."\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); } ?>
×
×
  • 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.