Code: Select all
<?php
$firstName = $_POST['firstName'];
$lastName = $_POST['lastName'];
$street = $_POST['street'];
$city = $_POST['city'];
$state = $_POST['state'];
$zipCode = $_POST['zipCode'];
$orderQuantity = $_POST['orderQuantity'];
$email = $_POST['email'];
$copyType = 'copy';
print "To: <br />";
print $firstName . " " . $lastName;
print "<br />";
print $street;
print "<br />";
print $city . ", " . $state . " " . $zipCode;
print "<br />";
print $email;
print "<br /><br />";
print "Hi! I want " . $orderQuantity . ";
$castQuantity = (int)$orderQuantity;
if ($castQuantity > 1) { $copyType = 'copies'; };
print $copyType;
print " of The X of Art EP";
print "<br />";
$total = $orderQuantity * 2.00;
print "Enclosed is my check or money order of \$" . number_format($total, 2) . " + \$2.95 for shipping and handling.";
print "<br />";
print "Make your payment out to ####, LLC";
?>- Adam