I can't figure out why it's doing this here is my code for the form can any help me understand why and how do I get it to say the email address of the person filling out the form? thanks so much :)
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
session_start(); if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) { mail("info@sugarcookiecards.com","Sugar Cookie Cards Online Order Form","Sugar Cookie Cards Online Order Form data:
Date: " . $_POST['field_1'] . " PO Number: " . $_POST['field_2'] . " Contact Person: " . $_POST['field_3'] . " Email Address: " . $_POST['field_4'] . " Address: " . $_POST['field_5'] . " Payment Method: " . $_POST['field_6'] . " Shipping Method: " . $_POST['field_7'] . " <BR>Product 1 Item Number: " . $_POST['field_8'] . " Product Description : " . $_POST['field_9'] . " Box: " . $_POST['field_10'] . " Bulk: " . $_POST['field_11'] . " Unit Price=$ " . $_POST['field_12'] . " <BR>Product 2 Item Number: " . $_POST['field_13'] . " Product Description: " . $_POST['field_14'] . " Box: " . $_POST['field_15'] . " Bulk: " . $_POST['field_16'] . " Unit Price=$ " . $_POST['field_17'] . " <BR>Product 3 Item Number: " . $_POST['field_18'] . " Product Description: " . $_POST['field_19'] . " Bulk: " . $_POST['field_20'] . " Box: " . $_POST['field_21'] . " Unit Price=$ " . $_POST['field_22'] . " <BR>Product 4 Item Number: " . $_POST['field_23'] . " Product Description: " . $_POST['field_24'] . " Box: " . $_POST['field_25'] . " Bulk: " . $_POST['field_26'] . " Unit Price=$ " . $_POST['field_27'] . " <BR>Total for all products=$ " . $_POST['field_28'] . "
powered by phpFormGenerator. ");
include("confirm.html"); } else { echo "Invalid Captcha String."; }
?>
Log in to post a comment.
I can't figure out why it's doing this here is my code for the form can any help me understand why and how do I get it to say the email address of the person filling out the form?
thanks so much
:)
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
session_start();
if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
mail("info@sugarcookiecards.com","Sugar Cookie Cards Online Order Form","Sugar Cookie Cards Online Order Form data:
Date: " . $_POST['field_1'] . "
PO Number: " . $_POST['field_2'] . "
Contact Person: " . $_POST['field_3'] . "
Email Address: " . $_POST['field_4'] . "
Address: " . $_POST['field_5'] . "
Payment Method: " . $_POST['field_6'] . "
Shipping Method: " . $_POST['field_7'] . "
<BR>Product 1 Item Number: " . $_POST['field_8'] . "
Product Description : " . $_POST['field_9'] . "
Box: " . $_POST['field_10'] . "
Bulk: " . $_POST['field_11'] . "
Unit Price=$ " . $_POST['field_12'] . "
<BR>Product 2 Item Number: " . $_POST['field_13'] . "
Product Description: " . $_POST['field_14'] . "
Box: " . $_POST['field_15'] . "
Bulk: " . $_POST['field_16'] . "
Unit Price=$ " . $_POST['field_17'] . "
<BR>Product 3 Item Number: " . $_POST['field_18'] . "
Product Description: " . $_POST['field_19'] . "
Bulk: " . $_POST['field_20'] . "
Box: " . $_POST['field_21'] . "
Unit Price=$ " . $_POST['field_22'] . "
<BR>Product 4 Item Number: " . $_POST['field_23'] . "
Product Description: " . $_POST['field_24'] . "
Box: " . $_POST['field_25'] . "
Bulk: " . $_POST['field_26'] . "
Unit Price=$ " . $_POST['field_27'] . "
<BR>Total for all products=$ " . $_POST['field_28'] . "
powered by phpFormGenerator.
");
include("confirm.html");
}
else {
echo "Invalid Captcha String.";
}
?>