I created a form using phpformgen yesterday. Everything worked fine, even after customizing the form exactly how I needed it. I tested it a dozen times, sending it to my e-mail address and it worked every time. Today I go in, re-try it, and get the e-mail and Thank You Page, but the e-mail being sent is completely blank except for the form fields.
This is for a client of mine, and I refuse to send them anything that isn't functioning properly.
I created a form using phpformgen yesterday. Everything worked fine, even after customizing the form exactly how I needed it. I tested it a dozen times, sending it to my e-mail address and it worked every time. Today I go in, re-try it, and get the e-mail and Thank You Page, but the e-mail being sent is completely blank except for the form fields.
This is for a client of mine, and I refuse to send them anything that isn't functioning properly.
I am using PHP v. 5.2.9
My HTML:
<form action="processor.php" form method="post">
<p><strong>Full Name</strong><small>*</small><br />
<input id="element_0" name="element_0" value="" size="30" class="validate" type="text" /></p>
<p><strong>Email</strong><small>*</small><br />
<input id="element_1" name="element_1" class="validate[required,custom]" value="" size="30" type="text" /></p>
<p><strong>Subject</strong><small>*</small><br />
<input id="element_3" name="element_3" value="" size="30" class="validate" type="text" /></p>
<p><strong>Department</strong><small>*</small><br />
<select name="mydropdown" class="validate">
<option value="Shipping">Shipping</option>
<option value="Support">Support</option>
<option value="Order Status">Order Status</option>
</select>
</p>
<p><strong>Message</strong><small>*</small><br />
<textarea id="element_5" name="element_5" cols="50" rows="6" class="validate">
</textarea></p>
<p><input type="submit" value="Submit Form"> <input type="reset" value="Reset Form"></p>
</form>
My Processor.php file:
<?php
$where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));
mail("vintage_rock07@yahoo.com","phpFormGenerator - Form submission","Form data:
Full Name: " . $_POST . "
Email: " . $_POST . "
Department: " . $_POST . "
Subject: " . $_POST . "
Message: " . $_POST . "
powered by phpFormGenerator.
");
include("confirm.html");
?>
I'd appreciate anyone's help. This is quite urgent.