<?
header
("Cache-Control: no-store, no-cache, must-revalidate");
?>
<?
// Automatic ordering script copyright 2002 Eric J. Wilner.
// Permission is granted to use, modify, and redistribute
// this code, on the following conditions:
// (1) This notice must be retained intact;
// (2) No endorsement of any products, real or imaginary,
//     by Eric J. Wilner nor Gumbyware Internotional, may
//     be implied;
// (3) The user must accept the Gumbyware Limited Warranty.
//
// Gumbyware Limited Warranty:
// This product is unconditionally guaranteed to alienate
// your customers, send your confidential files to your
// business rivals, randomly alter your data, damage
// your monitor, crash your hard drive, turn your teeth
// blue, and cause cancer in laboratory rats.
// Guaranteed waterproof to five fathoms or five Angstroms,
// whichever is less.
// This limited warranty is valid for 10 seconds or 10,000
// millimeters, whichever comes first.
// If the product fails to perform as advertised during
// the warranty period, simply return it unopened for
// a full refund.
// Gumbyware Internotional will not be responsible for
// incidental or consequential damages, including having
// your castle burned to the ground by an angry mob.
//
// Gumbyware Internotional assumes no responsibility
// for the user's deployment of this product.  In
// particular, deployment of this product in the
// United States may infringe Ridiculopathy.com's
// patent on Zero-Click Ordering.
//
// Zero-Click Ordering is a trademark of Ridiculopathy.com;
// no trademark license is implied.  "Clickless Ordering"
// is a generic term which may be used by anyone.
//
// Neither Eric J. Wilner nor Gumbyware Internotional has
// any connection with Ridiculopathy.com, apart from
// ripping off their idea.
?>

<html>
<head>
<title>Thank you for your order.</title>
<style type="text/css">
<!--
.go  {font-size:larger; color:green}
.typed    {font-family:monospace; font-size:larger; color:#000060}
.fine1    {font-family:serif; font-size:x-small; color:#C00000}
.fine2    {font-family:serif; font-size:x-small; color:#808080}
-->
</style>
</head>
<body bgcolor=#FFFFC0>
<center>

<div class=fine1>Customer copy - keep for your records</div>
<h1>Thank you for your order.</h1>
<?
srand
((double)microtime()*1000000);

$modifiers = array (
    
"Nonpareil""Reciprocating""Extended""Organic""All-natural",
    
"Preframmulated""Eternal""Perpetual""Perplexing""Amazing",
    
"Imported""Insulated""Magnetic""Electronic""Government surplus",
    
"Swedish""Russian""Superior""Scientific""Digital""Common-mode",
    
"Powerful""Automatic""Alluvial""High-frequency""Atomic",
    
"Anadromous""Endochronic""Pelagic""Unbreakable""Shockproof"
    
);
$objects = array (
    
"turnip""salmon""piston""base""crankshaft""hard drive",
    
"MP3""CD""virus""e-mail""application""disk""memory",
    
"CPU""transmission""modem""night vision""diet""telephone",
    
"cell phone""communication""empathy""telekinesis""video",
    
"coffee""nutmeg""resograph""engram""cigar""radiation",
    
"cable""satellite TV""butter""egg""pedestal""table",
    
"valve""hose""plumbing""sink""gas""radon""algorithm",
    
"logarithm""log""monitor""LCD""e-commerce"
    
);
$thingers = array (
    
"nobbler""calibrator""cooler""cleaner""roaster",
    
"smoker""enhancer""enlarger""developer""optimizer",
    
"tweaker""server""filter""tester""masher""accelerator",
    
"homogenizer""pasteurizer""dehydrator""grater""organizer",
    
"waterer""preventer""compactor""detector""melter",
    
"eraser""descrambler""counter""grinder""purifier",
    
"mixer""mower""preserver""restorer""saver""eliminator",
    
"chopper""slicer""splitter""coupler""calculator",
    
"welder"
    
);

$total 0;
$items rand(2,6);

print(
"<table border>\n");
print(
"<tr>" .
      
"<th>Qty</th>" .
      
"<th>Cat #</th>" .
      
"<th>Description</th>" .
      
"<th>Price</th>" .
      
"<th>Cost</th>" .
      
"</tr>\n");

for (
$i=0$i<$items$i++) {
    
$qty rand(1,10);
    
$price rand(99,1999) / 100.0;
    
$cost $qty $price;
    
$total += $cost;

    
$modno rand(1,count($modifiers));
    
$objno rand(1,count($objects));
    
$terno rand(1,count($thingers));

    
$catno 10000 $modno 100 $objno $terno;

    
$description $modifiers[$modno-1] . " " .
                   
$objects[$objno-1]. " " .
                   
$thingers[$terno-1];

    
printf("<tr class=typed><td align=right>%d</td>" .
           
"<td align=right>%06d</td><td>%s</td>" .
           
"<td align=right>%01.2f</td><td align=right>%01.2f</td>\n",
           
$qty$catno$description$price$cost);

}

print(
"<tr><td /></tr>\n");
printf("<tr><td colspan=4 align=right>Subtotal</td>" .
       
"<td class=typed align=right>%01.2f</td></tr>\n",$total);
print(
"<tr><td /></tr>\n");

$shipping rand(140,479) / 100.0;
$handling rand(200,500) / 100.0;
$tax $total * (rand(350,875) / 10000.0);

$total += $shipping $handling $tax;

printf("<tr><td colspan=4 align=right>Shipping</td>" .
       
"<td class=typed align=right>%01.2f</td></tr>\n",$shipping);
printf("<tr><td colspan=4 align=right>Handling</td>" .
       
"<td class=typed align=right>%01.2f</td></tr>\n",$handling);
printf("<tr><td colspan=4 align=right>Internet tax (per Federal law 602P)</td>" .
       
"<td class=typed align=right>%01.2f</td></tr>\n",$tax);
print(
"<tr><td /></tr>\n");
printf("<tr><td colspan=4 align=right><b>Total</b></td>" .
       
"<td class=typed align=right>%01.2f</td></tr>\n",$total);

print(
"</table>\n");

$fudge rand(1000,1060) / 1000.0;

$total *= $fudge;

printf("A <span class=typed>$%1.2f</span>" .
       
" charge will appear on your internet bill.<br />\n"$total);
print(
"<div class=fine2>Please allow 3 to 5 years for delivery.</div>\n");
?>

</center>
</body>
</html>