instructions for php scripts









Instructions for PHP Scripts




Instructions for PHP Scripts.





You can open each of the pages by using an HTML editor or a
notepad.  To open in a notepad, "right-click" the document and mouse down
to Open with...notepad.  A programmers trick is when your document is open,
click on edit and go to replace or
replace with. In the find what box type the words
to be replaced and then in the replace with box type the words to replace the
former. This is especially handy when you have to replace text that appear
often.
It may look scary, but save a master copy first and then start
editing. If you make a mistake you still have a copy.  When your done
upload to your website in the same folder as your other html files.





Simple Shopping Cart





Item Description

Images

Price








<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Simple Shopping Cart</title>

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
function newWindowa() {
birdhouse1 = window.open("images/bh1.jpg","birdhouse1",
"width=440,height=700")
}
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
function newWindowb() {
birdhouse2 = window.open("images/bh2.jpg","birdhouse2",
"width=440,height=700")
}
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
function newWindowc() {
birdhouse3 = window.open("images/bh3.jpg","birdhouse3",
"width=440,height=700")
}
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
function newWindowd() {
birdhouse4 = window.open("images/bh4.jpg","birdhouse4",
"width=440,height=700")
}
</SCRIPT>
<style fprolloverstyle>A:hover {color: #FF0000; font-family: Arial}
</style>
</head>

<body>
<p>
<script LANGUAGE="JavaScript">
<!--
function click() {
if (event.button==2) {
alert('Right Click Option Not Available!');
}
}
document.onmousedown=click
// -->
</script>

<form method="POST" action="cartpet.php">

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="85%">
<tr>
<td width="33%">&nbsp;</td>
<td width="33%">
<p align="center"><b>Simple Shopping Cart</b></td>
<td width="34%">&nbsp;</td>
</tr>
</table>
</center>
</div>

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="85%">
<tr>
<td width="100%">&nbsp;</td>
</tr>
</table>
</center>
</div>

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="63%">
<tr>
<td width="100%"><font size="2">The images can be swapped with other
images.&nbsp; I did this originally for a customer who sold discount
software.&nbsp; It could easily be adapted to fit your needs.&nbsp;It
requires PHP but not MySQL.
</font><b><font color="#FF0000">Go ahead and try it!!&nbsp; </font>
<font size="2">(Credit Card Function is Disabled)</font></b></td>
</tr>
</table>
</center>
</div>

<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="98%" height="679">

<tr>

<td width="100%" height="673">&nbsp;<div align="center">

<center>

<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="94%">

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF">

<font color="#000080"><b>Birdhouse # 001</b></font></td>

<td width="50%" align="center"><b><font size="4" color="#000080">Item
Description</font></b></td>

<td width="10%" align="center"><b><font size="4"
color="#000080">Price</font></b></td>

<td width="9%" align="center"><b><font size="4"
color="#000080">Quantity</font></b></td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF"><A
HREF="javascript:newWindowa()">

<img border="2" src="images/bh1s.jpg"
width="75" height="117" name="birdhouse1"></A> </td>

<td width="50%" align="center">Four
Family Post Birdhouse. </td>

<td width="10%" align="center"><b>$19.95</b></td>

<td width="9%" align="center">




<select size="1" name="bh1q">

<option value="0" selected>0</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

</select></td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF">

<font color="#000080"><b>Birdhouse # 002</b></font></td>

<td width="50%" align="center">&nbsp;</td>

<td width="10%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF"><A
HREF="javascript:newWindowb()">

<img border="2" src="images/bh2s.jpg"
width="75" height="117" name="birdhouse2"></A></td>

<td width="50%" align="center">Single
Family Ceramic Birdhouse.</td>

<td width="10%" align="center"><b>$19.95</b></td>

<td width="9%" align="center"> <p><select size="1" name="bh2q">

<option selected value="0">0</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

</select></p>

</td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF">

<font color="#000080"><b>Birdhouse # 003</b></font></td>

<td width="50%" align="center">&nbsp;</td>

<td width="10%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF"><A
HREF="javascript:newWindowc()">

<img border="2" src="images/bh3s.jpg"
width="75" height="117" name="birdhouse3"></td>

<td width="50%" align="center">Three
Family Country Cabin Birdhouse.</td>

<td width="10%" align="center"><b>$19.95</b></td>

<td width="9%" align="center"><p>

<select size="1" name="bh3q">

<option value="0" selected>0</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

</select></td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF">

<font color="#000080"><b>Birdhouse # 004</b></font></td>

<td width="50%" align="center">&nbsp;</td>

<td width="10%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF"><A
HREF="javascript:newWindowd()">

<img border="2" src="images/bh4s.jpg"
width="75" height="117" namehouse="birdhouse4"></A></td>

<td width="50%" align="center">Single
Family Barn-house.</td>

<td width="10%" align="center"><b>$19.95</b></td>

<td width="9%" align="center"><p>

<select size="1" name="bh4q">

<option value="0" selected>0</option>

<option value="1">1</option>

<option value="2">2</option>

<option value="3">3</option>

<option value="4">4</option>

<option value="5">5</option>

</select></td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#E8E8FF" bordercolor="#0000FF">&nbsp;</td>

<td width="50%" align="center">&nbsp;</td>

<td width="10%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

</tr>

<tr>

<td width="22%" align="center" bgcolor="#FFFFFF">&nbsp;</td>

<td width="50%" align="center"><p align="right">

<input type="submit" value="Go To Shopping Cart" name="B1">&nbsp;&nbsp;&nbsp;
<input type="reset" value="Reset" name="B2"></p>

</td>

<td width="10%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

<td width="9%" align="center">&nbsp;</td>

</tr>

</table>

</center>

</div>

</td>

</tr>

</table>

</form>

<br>

<p> </P>

</body>



</html>








 




carpet.php





Form Input
Statements (Note white area above.)

Item
(Bird house)








 








<?php
$sub1 = $_POST["bh1q"];
$sub2 = $_POST["bh2q"];
$sub3 = $_POST["bh3q"];
$sub4 = $_POST["bh4q"];
$sub1d = ("$sub1"*19.95);
$sub2d = ("$sub2"*19.95);
$sub3d = ("$sub3"*19.95);
$sub4d = ("$sub4"*19.95);
$sub1d = number_format ($sub1d, 2);
$sub2d = number_format ($sub2d, 2);
$sub3d = number_format ($sub3d, 2);
$sub4d = number_format ($sub4d, 2);
if ($sub1 + $sub2 + $sub3 + $sub4 == 0 ) { $cart = "<center><i>Cart is
Emply</i>";
}
else {
$gt = ("$sub1d"+"$sub2d"+"$sub3d"+"$sub4d");
if ( $sub1 > 0 ) { $item1 = "&nbsp;&nbsp;&nbsp;Bird
House #1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub1d<br>";
}
if ( $sub2 > 0 ) { $item2 = "&nbsp;&nbsp;&nbsp;Bird
House #2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub2d<br>";
}
if ( $sub3 > 0 ) { $item3 = "&nbsp;&nbsp;&nbsp;Bird
House #3 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub3 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub3d<br>";
}
if ( $sub4 > 0 ) { $item4 = "&nbsp;&nbsp;&nbsp;Bird
House #4 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub4 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$sub4d<br>";
}
}
?>

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 8</title>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function goToURL() { window.location = "simple_shopping_cart.htm"; }

// End -->

</script>

</head>

<body>
<p>&nbsp;</p>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="384">
<tr>
<td width="384">
<p align="center"><font size="5" color="#800080">Shopping Cart</font></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="386">
<tr>
<td width="199" align="center"><font color="#008000"><b>Item </b></font>
</td>
<td width="93" align="center"><font
color="#008000"><b>Quantity</b></font></td>
<td width="94" align="center"><font color="#008000"><b>Sub
Total</b></font></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="325">
<tr>
<td width="392" align="left"><?php echo "$item1"; ?>
<?php echo "$item2"; ?>
<?php echo "$item3"; ?>
<?php echo "$item4"; ?>
<?php echo "$cart"; ?>
</td>
</tr>
</table>
</center>
</div>
<p>

<p>

&nbsp;</p>
<p>
<form method="POST" action="checkout.php">

<div align="center">

<center>

<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="400">

<tr>

<td width="76%">

<p align="right"><b>

<input type="hidden" name="bh1"
size="20" value="<?php echo "$sub1"; ?>"><input type="hidden" name="bh2"
size="20" value="<?php echo "$sub2"; ?>"><input type="hidden" name="bh3"
size="20" value="<?php echo "$sub3"; ?>"><input type="hidden" name="bh4"
size="20" value="<?php echo "$sub4"; ?>">Grand Total:</b></td>

<td width="24%" bgcolor="#FFFFFF">

<input name="total" size="10" style="float: right" value="<?php printf
("%01.2f","$gt"); ?>"></td>

</tr>

</table>

</center>

</div>

<p align="center">

<input type="submit" value="Check Out" name="B1">&nbsp;&nbsp; <input
type="button" value="Do Over" name="B2" onClick="goToURL()"></p>

</form>

<p>&nbsp;</td>

</tr>

</table>

</center>

</div>

</body>

</html>








 









checkout.php








 
 
 








<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Check Out</title>
<script>
function submitIt(myForm) {
echeck = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
if ((myForm.email.value == "") || (myForm.flname.value == "") || (myForm.address.value
== "") || (myForm.ccname.value == "") || (myForm.city.value == "") || (myForm.ccnum.value
== "") || (myForm.state.value == "") || (myForm.phone.value == "") || (myForm.month.value
== "") || (myForm.year.value == "") || (myForm.zip.value == "")) {
alert("You must fill all the info."); return false; }
if (echeck.test(myForm.email.value)) {
return true;
}
else {
alert("Invalid Email Address")
myForm.email.focus()
myForm.email.select()
return false
}
}
</script>

</head>
<body>

<?php

$sub1 = $_POST["bh1"];

$sub2 = $_POST["bh2"];

$sub3 = $_POST["bh3"];

$sub4 = $_POST["bh4"];

?>

<p align="center"><b><font size="5">Check Out</font></b></p>

<p align="center">&nbsp;</p>

<form onsubmit="return submitIt(this)" action="customerorder.php"
method="POST">

<div align="center">

<center>

<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="44%">

<tr>

<td width="46%">Name:</td>

<td width="61%"><input type="text" name="flname" size="30"></td>

</tr>

<tr>

<td width="46%">Address:</td>

<td width="61%"><input type="text" name="address" size="30"></td>

</tr>

<tr>

<td width="46%">City:</td>

<td width="61%"> <input type="text" name="city" size="20"> </td>

</tr>

<tr>

<td width="46%">State:</td>

<td width="61%"><select name="state">

<option value="0" selected>Please Select</option>

<option value="AK">Alaska</option>

<option value="AL">Alabama</option>

<option value="AR">Arkansas</option>

<option value="AS">American Samoa</option>

<option value="AZ">Arizona</option>

<option value="CA">California</option>

<option value="CO">Colorada</option>

<option value="CT">Conneticut</option>

<option value="DC">District of Colombia</option>

<option value="DE">Delaware</option>

<option value="FL">Florida</option>

<option value="FM">Federated States</option>

<option value="GA">Georgia</option>

<option value="GU">Guam</option>

<option value="HI">Hawaii</option>

<option value="IA">Iowa</option>

<option value="ID">Idaho</option>

<option value="IL">Illinois</option>

<option value="IN">Indiana</option>

<option value="KS">Kansas</option>

<option value="KY">Kentucky</option>

<option value="LA">Louisiana</option>

<option value="MA">Massachusetts</option>

<option value="MD">Maryland</option>

<option value="ME">Maine</option>

<option value="MI">Michigan</option>

<option value="MN">Minnesota</option>

<option value="MO">Missouri</option>

<option value="MS">Mississippi</option>

<option value="MT">Montana</option>

<option value="NC">North Carolina</option>

<option value="ND">North Dakota</option>

<option value="NE">Nebraska</option>

<option value="NH">New Hampshire</option>

<option value="NJ">New Jersey</option>

<option value="NM">New Mexico</option>

<option value="NV">Nevada</option>

<option value="NY">New York</option>

<option value="OH">Ohio</option>

<option value="OK">Oklahoma</option>

<option value="OR">Oregon</option>

<option value="PA">Pennsylvania</option>

<option value="PR">Puerto Rico</option>

<option value="RI">Rhode Island</option>

<option value="SC">South Carolina</option>

<option value="SD">South Dakota</option>

<option value="TN">Tennessee</option>

<option value="TX">Texas</option>

<option value="UT">Utah</option>

<option value="VI">Virgin Islands</option>

<option value="VT">Vermont</option>

<option value="VA">Virginia</option>

<option value="WA">Washington</option>

<option value="WI">Wisconsin</option>

<option value="WV">West Virginia</option>

<option value="WY">Wyoming</option>

</select>

</td>

</tr>

<tr>

<td width="46%">Zip Code:</td>

<td width="61%"><input type="text" name="zip" size="10"></td>

</tr>

<tr>

<td width="46%">Contact Phone:</td>

<td width="61%"><input type="text" name="phone" size="15"></td>

</tr>

<tr>

<td width="46%">Email Address</td>

<td width="61%"><input type="text" name="email" size="20"></td>

</tr>

<tr>

<td width="46%"><hr color="#0000FF"></td>

<td width="61%"><hr color="#0000FF"><input type="hidden" name="bh1"
size="20" value="<?php echo "$sub1"; ?>"><input type="hidden" name="bh2"
size="20" value="<?php echo "$sub2"; ?>"><input type="hidden" name="bh3"
size="20" value="<?php echo "$sub3"; ?>"><input type="hidden" name="bh4"
size="20" value="<?php echo "$sub4"; ?>"></td>

</tr>

<tr>

<td width="46%">

<p align="left">Grand Total:</td>

<td width="61%">

<input type="text" name="total" value="<?php echo $_POST["total"]; ?>"
size="8"></td>

</tr>

<tr>

<td width="46%">Name on Credit Card:</td>

<td width="61%"><input type="text" name="ccname" size="20"></td>

</tr>

<tr>

<td width="46%">Credit Card Number:</td>

<td width="61%"><input type="text" name="ccnum" size="16"></td>

</tr>

<tr>

<td width="46%">Expiration Date&nbsp; (mm/yy)</td>

<td width="61%"><select size="1" name="month">
<option selected>Month</option>
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>&nbsp; <select size="1" name="year">
<option>year</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
</select></td>
</tr
</table>
</center>
</div>
<p align="center"><input type="submit" value="Submit Info"><input
type="reset" value="Reset"></p>
</form>
</body>
</html>








 



customerorder.php









Form Input Statements (Note white area above and below.
There are other form inputs but for now it's best not to change them.)


Item


 Email
address








<?php
$name = $_POST["flname"];
$address = $_POST["address"];
$city = $_POST["city"];
$state = $_POST["state"];
$zip = $_POST["zip"];
$phone = $_POST["phone"];
$email = $_POST["email"];
$total = $_POST["total"];
$ccname = $_POST["ccname"];
$ccnum = $_POST["ccnum"];
$month = $_POST["month"];
$year = $_POST["year"];
$sub1 = $_POST["bh1"];
$sub2 = $_POST["bh2"];
$sub3 = $_POST["bh3"];
$sub4 = $_POST["bh4"];
if ($sub1 > 0 ) { $item1 = "Bird
House #1 - Quantity Ordered $sub1\n\n";
}
if ($sub2 > 0 ) { $item2 = "Bird
House #2 - Quantity Ordered $sub2\n\n";
}
if ($sub3 > 0 ) { $item3 = "Bird
House #3 - Quantity Ordered $sub3\n\n";
}
if ($sub4 > 0 ) { $item4 = "Bird
House #4 - Quantity Ordered $sub4\n\n";
}
$substring = substr($ccnum,12,16);

$mymail = "info@ultimatephp.com";

$temp = "Hello again $name.\n\n You tried out the Simple Shopping Cart at
http://www.ultimatephp.com.\n\n Your order for:\n\n $item1 $item2 $item3
$item4 Total to charged to your credit Card: $total Ending $substring\n\nShipping
Address:\n$name\n$address\n$city $state $zip\n If this is incorrect,
contact us at $mymail ";

$temp2 = "Order for $name\n address- $address\n city- $city\n state-
$state\n zip- $zip\n phone- $phone\n email- $email\n $item1 $item2 $item3
$item4 total- $total\n creditname- $ccname\n number- $ccnum\n expire-
$month/$year\n";

$mymail1 = "info@ultimatephp.com";

mail ($email,"Thank You $name, for your Order!",$temp,"From:$mymail");

mail ($mymail,"Order!",$temp2,"From:$email");

if ($sub1 > 0) {$item1a = "$item1<br>";
}
if ($sub2 > 0) {$item2a = "$item2<br>";
}
if ($sub3 > 0) {$item3a = "$item3<br>";
}
if ($sub4 > 0) {$item4a = "$item4<br>";
}

$display = "$item1a $item2a $item3a $item4a";

?>
<html>

<Head>

<Title>Customer Order</title>

</head>

<body>

<script LANGUAGE="JavaScript">

<!--

function click() {

if (event.button==2) {

alert('Right Click Option Not Available!');

}

}

document.onmousedown=click

// -->

</script>





<div align="center">

<center>

<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="85%">

<tr>

<td width="100%">&nbsp;Thank you <?php echo $_POST["flname"];?> for your
order. It is being processed and will be shipped

immediately. Please print the receipt below for your records. </td>

</tr>

</table>

</center>

</div>



<p>&nbsp;</p>



<div align="center">

<center>

<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="71%">

<tr>

<td width="41%" align="right">

<b>Customer Name:</b> </td>

<td width="59%"><?php echo $_POST["flname"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Customer's Street Address:</b></td>

<td width="59%"><?php echo $_POST["address"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Customer's City:</b></td>

<td width="59%"><?php echo $_POST["city"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Customer's State:</b></td>

<td width="59%"><?php echo $_POST["state"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Customer's Zip:</b></td>

<td width="59%"><?php echo $_POST["zip"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Customer's Phone:</b></td>

<td width="59%"><?php echo $_POST["phone"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Customer's Email:</b></td>

<td width="59%"> <?php echo "$email";?> </td>

</tr>

<tr>

<td width="41%" align="right">

<b>Amount Charged on Credit Card:</b></td>

<td width="59%"><?php echo $_POST["total"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Name on Credit Card:</b></td>

<td width="59%"><?php echo $_POST["ccname"];?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Credit Card Number:</b></td>

<td width="59%">************<?php echo $substring;?></td>

</tr>

<tr>

<td width="41%" align="right">

<b>Expiration Date:</b>

</td>

<td width="59%"><?php echo "$month"; ?>/<?php echo "$year"; ?></td>

</tr>

<tr>

<td width="41%" align="right">&nbsp;</td>

<td width="59%">&nbsp;</td>

</tr>

</table>

</center>

</div>

<p><br>

&nbsp;</p>

<div align="center">

<center>

<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="46%">

<tr>

<td width="100%">

<p align="center"><b>Items Ordered</b></td>

</tr>

</table>

</center>

</div>

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="300">
<tr>
<td width="300"><?php echo "$display"; ?></td>
</tr>
</table>
</center>
</div>
</body>

</html>




 
 





Wyszukiwarka

Podobne podstrony:
Instructions For Living by Rabbi Noach Weinberg
Instrumentation for Fluid Particle Flow
Instructions for your download
Instructions for Reading a DB Bead Pattern
CIM Lab Instruction for KSPT 2013
1869 Principles of squad instruction for the broadsword
TAB 4 Celestial Navigation Chapter 16 Instruments for Celestial Navigation
Desktop Integration Connect For PHP Slides
James Perkins Burling The Bible as Material for Sex Instruction
2005 11 Discovery Scripts Bash Based Hardware Detection for Pci and Usb
2005 11 Discovery Scripts Bash Based Hardware Detection for Pci and Usb
2009 03 Parallel Thinking Optimizing Bash Scripts for Multi Core Processors
Marillion Script For A Jester s Tear
Action Script ? PHP
Blind Guardian The script for my requiem
Linux Online Firewall and Proxy Server HOWTO APPENDEX B An VPN RC Script for RedHat

więcej podobnych podstron