CKMeth0d
07-05-2005, 09:19 PM
I believe this is the right forum to post my thread, but if not, sorry in advance.
I'm having problems with the email ordering form that I have set up on my website. Whenever I click submit, it says that it has sent the information, but I never receive any emails.
Here's the PHP:
<?php
if ($_POST['Submit'])
{
// email data here
// $var_name = $_POST['form_object_name'];
$your_email = "CKMeth007@hotmail.com";
$subject = "Massive Speed System Order";
$name = $_POST['name'];
$email = $_POST['email'];
$website = $_POST['website'];
$comments = $_POST['comments'];
$fav_thing = $_POST['fav_thing'];
$country = $_POST['country'];
$body = "<strong>First Name</strong> " . $name . "<br>" .
"<strong>Last Name</strong> " . $name_last . "<br>" .
"<strong>Street</strong> " . $street . "<br>" .
"<strong>City </strong>" . $city . "<br>" .
"<strong>State </strong>" . $state . "<br>" .
"<strong>Zip Code</strong> " . $zip_code . "<br>" .
"<strong>Product</strong> " . $product . "<br>" .
"<strong>Quantity</strong> " . $quantity . "<br>" .
"<strong>Color</strong> " . $color . "<br>" .
"<strong>Card Name</strong> " . $card_name . "<br>" .
"<strong>Card No</strong> " . $card_no . "<br>" .
"<strong>Expiration Date</strong> " . $expiration_date . "<br>" .
"<br>" .
"<strong>Comments</strong> <br>" . $comments;
mail($your_email, $subject, $body, "From: \"$name\" <$email>\nContent-Type: text/html; charset=iso-8859-1");
echo "Thank you, your data has been submitted. We will contact you as soon as possible.";
}
?>
And the HTML:
<form action="http://www.massivespeedsystem.com/orderform2.php" method="post" target="_blank">
<fieldset class="fieldset">
<legend><font color="f77e11">NAME</font></legend>
<label for="first name">First</label><br class="nobr" />
<input name="first name" type="text" class="textfield" id="first name" />
<br />
<label for="last name">Last</label><br class="nobr" />
<input name="last name" type="text" class="textfield" id="last name" />
<br />
<br />
<legend><font color="f77e11">ADDRESS</font></legend>
<label for="street">Street</label><br class="nobr" />
<input name="street" type="text" class="textfield" id="street" />
<br />
<label for="city">City</label><br class="nobr" />
<input name="city" type="text" class="textfield" id="city" />
<br/>
<label for="state">State</label><br class="nobr" />
<input name="state" type="text" class="textfield" id="state" />
<br/>
<label for="zip code">Zip Code</label><br class="nobr" />
<input name="zip code" type="text" class="textfield" id="zip code" />
<br />
<br />
<legend><font color="f77e11">PRODUCT INFORMATION</font></legend>
<label for="product">Product</label><br class="nobr" />
<input name="product" type="text" class="textfield" id="product" />
<br />
<label for="quantity">Quantity</label><br class="nobr" />
<input name="quantity" type="text" class="textfield" id="quantity" />
<br/>
<label for="color">Color</label><br class="nobr" />
<input name="color" type="text" class="textfield" id="color" />
<br/>
<br />
<legend><font color="f77e11">PAYMENT INFORMATION</font></legend>
<label for="card">Card Name</label><br class="nobr" />
<input name="card" type="text" class="textfield" id="card" />
<br />
<br />
<label for="number">Card No.</label><br class="nobr" />
<input name="number" type="text" class="textfield" id="number" />
<br/>
<label for="expiration">Expiration Date</label><br class="nobr" />
<input name="expiration" type="text" class="textfield" id="expiration" />
<br />
<br />
<label for="comment">Comments?</label><br class="nobr" />
<textarea cols="30" rows="15" name="comment" id="comment" class="textarea"></textarea>
<br />
<label for="Submit"> </label><br class="nobr" />
<input name="Submit" type="submit" class="submit" id="submit" value="Submit" />
</fieldset>
</form>
Does anyone know why it says that the order has been placed/that the email has been sent but I never receive any orders or emails?
Please note, that as soon as this problem is fixed, this order form will be set up with secure ordering.
I'm having problems with the email ordering form that I have set up on my website. Whenever I click submit, it says that it has sent the information, but I never receive any emails.
Here's the PHP:
<?php
if ($_POST['Submit'])
{
// email data here
// $var_name = $_POST['form_object_name'];
$your_email = "CKMeth007@hotmail.com";
$subject = "Massive Speed System Order";
$name = $_POST['name'];
$email = $_POST['email'];
$website = $_POST['website'];
$comments = $_POST['comments'];
$fav_thing = $_POST['fav_thing'];
$country = $_POST['country'];
$body = "<strong>First Name</strong> " . $name . "<br>" .
"<strong>Last Name</strong> " . $name_last . "<br>" .
"<strong>Street</strong> " . $street . "<br>" .
"<strong>City </strong>" . $city . "<br>" .
"<strong>State </strong>" . $state . "<br>" .
"<strong>Zip Code</strong> " . $zip_code . "<br>" .
"<strong>Product</strong> " . $product . "<br>" .
"<strong>Quantity</strong> " . $quantity . "<br>" .
"<strong>Color</strong> " . $color . "<br>" .
"<strong>Card Name</strong> " . $card_name . "<br>" .
"<strong>Card No</strong> " . $card_no . "<br>" .
"<strong>Expiration Date</strong> " . $expiration_date . "<br>" .
"<br>" .
"<strong>Comments</strong> <br>" . $comments;
mail($your_email, $subject, $body, "From: \"$name\" <$email>\nContent-Type: text/html; charset=iso-8859-1");
echo "Thank you, your data has been submitted. We will contact you as soon as possible.";
}
?>
And the HTML:
<form action="http://www.massivespeedsystem.com/orderform2.php" method="post" target="_blank">
<fieldset class="fieldset">
<legend><font color="f77e11">NAME</font></legend>
<label for="first name">First</label><br class="nobr" />
<input name="first name" type="text" class="textfield" id="first name" />
<br />
<label for="last name">Last</label><br class="nobr" />
<input name="last name" type="text" class="textfield" id="last name" />
<br />
<br />
<legend><font color="f77e11">ADDRESS</font></legend>
<label for="street">Street</label><br class="nobr" />
<input name="street" type="text" class="textfield" id="street" />
<br />
<label for="city">City</label><br class="nobr" />
<input name="city" type="text" class="textfield" id="city" />
<br/>
<label for="state">State</label><br class="nobr" />
<input name="state" type="text" class="textfield" id="state" />
<br/>
<label for="zip code">Zip Code</label><br class="nobr" />
<input name="zip code" type="text" class="textfield" id="zip code" />
<br />
<br />
<legend><font color="f77e11">PRODUCT INFORMATION</font></legend>
<label for="product">Product</label><br class="nobr" />
<input name="product" type="text" class="textfield" id="product" />
<br />
<label for="quantity">Quantity</label><br class="nobr" />
<input name="quantity" type="text" class="textfield" id="quantity" />
<br/>
<label for="color">Color</label><br class="nobr" />
<input name="color" type="text" class="textfield" id="color" />
<br/>
<br />
<legend><font color="f77e11">PAYMENT INFORMATION</font></legend>
<label for="card">Card Name</label><br class="nobr" />
<input name="card" type="text" class="textfield" id="card" />
<br />
<br />
<label for="number">Card No.</label><br class="nobr" />
<input name="number" type="text" class="textfield" id="number" />
<br/>
<label for="expiration">Expiration Date</label><br class="nobr" />
<input name="expiration" type="text" class="textfield" id="expiration" />
<br />
<br />
<label for="comment">Comments?</label><br class="nobr" />
<textarea cols="30" rows="15" name="comment" id="comment" class="textarea"></textarea>
<br />
<label for="Submit"> </label><br class="nobr" />
<input name="Submit" type="submit" class="submit" id="submit" value="Submit" />
</fieldset>
</form>
Does anyone know why it says that the order has been placed/that the email has been sent but I never receive any orders or emails?
Please note, that as soon as this problem is fixed, this order form will be set up with secure ordering.