Jump to content

scot

New Members
  • Posts

    2
  • Joined

  • Last visited

scot's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Um, sorry - I'm new at this php stuff and not sure what you're talking about. Maybe I should've explained that the form is on my webpage and the php is separate, on my server.
  2. Hello, When I submit my home-built php contact form (below) the information doesn't make it to my inbox - it just disappears. There's no error log and once I click the Submit button, it says the info was submitted successfully. <form method="POST" action="mailer.php"> Name&#58; &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="name" size="19"><br> <br> Company&#58; <input type="text" name="company" size="19"><br> <br> e-Mail&#58; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="email" size="19"><br> <br> <input type="checkbox" name="check[]" value="digital_sample"> <b>Please send unrestricted digital access<br> <input type="checkbox" name="check[]" value="physical_sample"> Reserve my physical, retail shipper pack</b><br><br> <p style="text-align:center; font-family:Arial"> Shipping Instructions&#58;<br> <textarea rows="9" name="message" cols="30"></textarea><br> <br> <input type="submit" value="Submit" name="submit"></p> </form> <?php $check_msg = ""; if(isset($_POST['submit'])) { $to = "contact@stopsmokingforgood.com"; $subject = "Sample Request"; $name_field = $_POST['name']; $email_field = $_POST['email']; $company_field = $_POST['company']; $message = $_POST['message']; foreach($_POST['check'] as $value) { $check_msg .= "Checked: ".$value; } $body = "From: ".$name_field.": E-Mail: ".$email_field." : Company: ".$company_field." : Message: ".$message." : ".$check_msg; echo "Data has been submitted to ".$to; mail($to, $subject, $body); } else { echo "blarg!"; } ?>
×
×
  • 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.