SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about this order form

    For some reason it is only emailing me the customer details and not the actual products. Anyone know what is going on?

    Code HTML4Strict:
    <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
     
     
    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function right(e) {
    if (navigator.appName == 'Netscape' && 
    (e.which == 3 || e.which == 2))
    return false;
    else if (navigator.appName == 'Microsoft Internet Explorer' && 
    (event.button == 2 || event.button == 3)) {
    alert("Permission denied.");
    return false;
    }
    return true;
    }
     
    document.onmousedown=right;
    document.onmouseup=right;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (document.layers) window.captureEvents(Event.MOUSEUP);
    window.onmousedown=right;
    window.onmouseup=right;
     
     
    function validateForm() {
    						if(document.order.companyName.value == "") {
    						alert("Please Enter The Value For company name ");
     
    						return false;
    						}
    						if(document.order.ContactName.value == "") {
    						alert("Please Enter The Value For contact name ");
     
    						return false;
    						}
    						if(document.order.orderNumber.value == "") {
    						alert("Please Enter The Value For order number ");
     
    						return false;
    						}
    						if(document.order.phoneNumber.value == "") {
    						alert("Please Enter The Value For phone number ");
     
    						return false;
    						}
    						if(document.order.deliveryAddress.value == "") {
    						alert("Please Enter The Value For delivery address ");
     
    						return false;
    						}
     
    		return true;
    		}
     
     
    /* This script is Copyright (c) Paul McFedries and 
    Logophilia Limited ([url]http://www.mcfedries.com/)[/url].
    Permission is granted to use this script as long as 
    this Copyright notice remains in place.*/
     
    function CalculateTotal(frm) {
        var order_total = 0
     
        // Run through all the form fields
        for (var i=0; i < frm.elements.length; ++i) {
     
            // Get the current field
            form_field = frm.elements[i]
     
            // Get the field's name
            form_name = form_field.name
     
            // Is it a "product" field?
            if (form_name.substring(0,4) == "PROD") {
     
                // If so, extract the price from the name
                item_price = parseFloat(form_name.substring(form_name.lastIndexOf("_") + 1))
     
                // Get the quantity
                item_quantity = parseInt(form_field.value)
     
                // Update the order total
                if (item_quantity >= 0) {
                    order_total += item_quantity * item_price
                }
            }
        }
     
        // Display the total rounded to two decimal places
        frm.TOTAL.value = round_decimals(order_total, 2)
     
    }
     
    function round_decimals(original_number, decimals) {
        var result1 = original_number * Math.pow(10, decimals)
        var result2 = Math.round(result1)
        var result3 = result2 / Math.pow(10, decimals)
        return pad_with_zeros(result3, decimals)
    }
     
    function pad_with_zeros(rounded_value, decimal_places) {
     
        // Convert the number to a string
        var value_string = rounded_value.toString()
     
        // Locate the decimal point
        var decimal_location = value_string.indexOf(".")
     
        // Is there a decimal point?
        if (decimal_location == -1) {
     
            // If no, then all decimal places will be padded with 0s
            decimal_part_length = 0
     
            // If decimal_places is greater than zero, tack on a decimal point
            value_string += decimal_places > 0 ? "." : ""
        }
        else {
     
            // If yes, then only the extra decimal places will be padded with 0s
            decimal_part_length = value_string.length - decimal_location - 1
        }
     
        // Calculate the number of decimal places that need to be padded with 0s
        var pad_total = decimal_places - decimal_part_length
     
        if (pad_total > 0) {
     
            // Pad the string with 0s
            for (var counter = 1; counter <= pad_total; counter++) 
                value_string += "0"
            }
        return value_string
    }
     
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
     
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
     
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
     
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
     
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    <title>Order</title>
    </head>
     
    <body MARGINHEIGHT="0" TOPMARGIN="0" bgcolor="#000000" onload="MM_preloadImages('Images/contact1.jpg','Images/machines.jpg','Images/ourproducts.jpg','Images/ourservice.jpg','Images/coffeeorder.jpg','Images/accessories.jpg','Images/home.jpg')">
    <div align="center" height="100%"> 
      <table  border="0" cellspacing="0" id="layout" >
        <tbody>
          <tr> 
            <td width="200" id="tl">&nbsp;</td>
            <td id="trs"> </a><a href="Home.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','Images/home.jpg',1)"><img src="Images/home2.jpg" name="Image17" width="50" height="13" border="0" id="Image17" /></a><a href="Contact.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','Images/contact1.jpg',1)"><img src="Images/contact2.jpg" alt="Contact Us" name="Image11" width="80" height="13" border="0" id="Image11" /></a><a href="Machines.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','Images/machines.jpg',1)"><img src="Images/machines2.jpg" alt="Machines" name="Image12" width="72" height="13" border="0" id="Image12" /></a><a href="Accessories.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','Images/accessories.jpg',1)"><img src="Images/accessories2.jpg" name="Image13" width="91" height="13" border="0" id="Image13" /></a><a href="Order.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','Images/coffeeorder.jpg',1)"><img src="Images/coffeeorder2.jpg" alt="Coffee Order" name="Image16" width="91" height="13" border="0" id="Image16" /></a><a href="Products.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','Images/ourproducts.jpg',1)"><img src="Images/ourproducts2.jpg" alt="Products" name="Image14" width="93" height="13" border="0" id="Image14" /></a><a href="OurService.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','Images/ourservice.jpg',1)"><img src="Images/ourservice2.jpg" alt="Our Service" name="Image15" width="83" height="13" border="0" id="Image15" /></a></div></td>
          </tr>
          <tr> 
            <td colspan="2" id="banner"><div id="headimg"><img src="Images/banner.jpg" width="981" height="126" /></div></td>
          </tr>
          <tr bgcolor="#000000"> 
            <td colspan="2" id="tagline"><img src="Images/special.jpg" width="399" height="30" />v</td>
          </tr>
          <tr bgcolor="#000000"> 
            <td id="sidebar"> <div align="center"><img src="Images/bean.jpg" width="200" height="300" align="baseline" /></div>
       >
            <td bgcolor="#FFFFFF" id="content"> <div id="contentbox"> 
                <div style=" width:778px; height:395px; overflow:auto;">
                  <table width="759" height="811" border="0" align="center" cellpadding="6" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                    <tr> 
                      <td height="807">
    <form action="order.php" method="post" name="order" id="order" onsubmit="return validateForm()";>
                          <table width="640" height="563" border="0" align="center">
                            <tr> 
                              <td width="763" height="559"><em><font size="1"> </font></em> 
                                <table width="634" border="0" align="center" cellpadding="1" cellspacing="0">
                                  <tr bgcolor="#660000"> 
                                    <td height="18" id="code"><font color="#FFFFFF" size="-1" face="Arial"><strong>CODE</strong></font></td>
                                    <td id="description"><strong><font color="#FFFFFF" size="-1" face="Arial">DESCRIPTION</font></strong></td>
                                    <td id="cups"><font color="#FFFFFF" size="-1" face="Arial"><strong>PACKS/CTN</strong></font></td>
                                    <td id="size"><font color="#FFFFFF" size="-1" face="Arial"><strong>SIZE</strong></font></td>
                                    <td id="unitprice"><font color="#FFFFFF" size="-1" face="Arial"><strong>PRICE</strong></font></td>
                                    <td id="quantity"> <div class="noprint"> 
                                        <div align="center"><font color="#FFFFFF" size="-1" face="Arial"><strong>QTY</strong></font></div>
                                    </div></td>
                                  </tr>
                                  <tr bordercolor="#ECE9D8" bgcolor="#FFF2F2"> 
                                    <td width="92" class="code"><font color="#333333" size="-2" face="Arial">COFDECO</font></td>
                                    <td width="255"><font color="#000000" size="-2" face="Arial">Beans 
                                      DECO DEMI</font></td>
                                    <td width="115"><font color="#000000" size="-2" face="Arial">6</font></td>
                                    <td width="116"><font color="#000000" size="-2" face="Arial">1kg</font></td>
                                    <td width="82"><font color="#000000" size="-2" face="Arial">$29.90</font></td>
                                    <td width="36"> <div align="center"></div>
                                      <div align="right"> 
                                        <input type="text" name="PROD_beansDecoDemi_29.90" id="PROD_beansDecoDemi_29.90" onchange="CalculateTotal(this.form)" value=""  size="6"/>
                                    </div></td>
                                  </tr>
                                  <tr bordercolor="#ECE9D8" bgcolor="#FFF2F2"> 
                                    <td class="code"><font color="#333333" size="-2" face="Arial">COFGRO1kg</font></td>
                                    <td><font color="#000000" size="-2" face="Arial"><strong>Plunger 
                                      ground DECO</strong></font></td>
                                    <td><font color="#000000" size="-2" face="Arial">6</font></td>
                                    <td><font color="#000000" size="-2" face="Arial">1kg</font></td>
                                    <td><font color="#000000" size="-2" face="Arial">$33.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_plungerGroundDeco_33.90" type="text"  onchange="CalculateTotal(this.form)" size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bordercolor="#ECE9D8" bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">COFGRO250</font></td>
                                    <td><font size="-2" face="Arial"><strong>Plunger 
                                      ground DECO</strong></font></td>
                                    <td><font size="-2" face="Arial">10</font></td>
                                    <td><font size="-2" face="Arial">250gm</font></td>
                                    <td><font size="-2" face="Arial">$9.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_PlungerGroundDeco2_9.90" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">NESVEND</font></td>
                                    <td><font size="-2" face="Arial"><strong>VENDING 
                                      NESCAFE bag</strong></font></td>
                                    <td><font size="-2" face="Arial">6</font></td>
                                    <td><font size="-2" face="Arial">400gm</font></td>
                                    <td><font size="-2" face="Arial">$21.30</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_VendingNescafeBag_21.30" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td height="22" class="code"><font size="-2" face="Arial">NESCLAS</font></td>
                                    <td><font size="-2" face="Arial"><strong>NESCAFE 
                                      CLASSIC TIN</strong></font></td>
                                    <td><font size="-2" face="Arial">4</font></td>
                                    <td><font size="-2" face="Arial">400gm</font></td>
                                    <td><font size="-2" face="Arial">$27.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_NesCafeClassicTin_27.90" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td class="code"><font size="-2" face="Arial">NESMILO</font></td>
                                    <td><font size="-2" face="Arial"><strong>NESTLE 
                                      MILO</strong></font></td>
                                    <td><font size="-2" face="Arial">1</font></td>
                                    <td><font size="-2" face="Arial">1.9kg</font></td>
                                    <td><font size="-2" face="Arial">$19.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_NestleMilo_19.90" type="text"  onchange="CalculateTotal(this.form)" size="6" />
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td class="code"><font size="-2" face="Arial">COFCOAS</font></td>
                                    <td><font size="-2" face="Arial"><strong>COAST 
                                      VENDING INSTANT</strong></font></td>
                                    <td><font size="-2" face="Arial">5</font></td>
                                    <td><font size="-2" face="Arial">1kg</font></td>
                                    <td><font size="-2" face="Arial">$34.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_CoastVendingInstant_34.90" type="text"  onchange="CalculateTotal(this.form)" size="6" />
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td class="code"><font size="-2" face="Arial">CHOCOAS</font></td>
                                    <td><font size="-2" face="Arial"><strong>COAST 
                                      VENDING CHOC</strong></font></td>
                                    <td><font size="-2" face="Arial">10</font></td>
                                    <td><font size="-2" face="Arial">1kg</font></td>
                                    <td><font size="-2" face="Arial">$13.75</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_CoastVendingChoc_13.75" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td class="code"><font size="-2" face="Arial">MILKWEST</font></td>
                                    <td><font size="-2" face="Arial"><strong>VENDING 
                                      MILK GRANULE</strong></font></td>
                                    <td><font size="-2" face="Arial">10</font></td>
                                    <td><font size="-2" face="Arial">1kg</font></td>
                                    <td><font size="-2" face="Arial">$19.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_VendingMilkGranule_19.90" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">TEACOAS</font></td>
                                    <td><font size="-2" face="Arial"><strong>COAST 
                                      TEA BAGS</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">500s</font></td>
                                    <td><font size="-2" face="Arial">$19.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_CoastTeaBags_19.90" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">TEABELL</font></td>
                                    <td><font size="-2" face="Arial"><strong>BELL 
                                      TEA BAGS</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">500s</font></td>
                                    <td><font size="-2" face="Arial">$26.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_BellTeaBags_26.90" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">TEANEST</font></td>
                                    <td><font size="-2" face="Arial"><strong>SOLUBLE 
                                      NESTEA</strong></font></td>
                                    <td><font size="-2" face="Arial">10</font></td>
                                    <td><font size="-2" face="Arial">100gm</font></td>
                                    <td><font size="-2" face="Arial">$14.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_SolubleNestea_14.90" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">TEALEAF</font></td>
                                    <td><font size="-2" face="Arial"><strong>VENDING 
                                      LEAF TEA</strong></font></td>
                                    <td><font size="-2" face="Arial">6</font></td>
                                    <td><font size="-2" face="Arial">1kg</font></td>
                                    <td><font size="-2" face="Arial">$19.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_VendingLeafTea_19.90" type="text"  onchange="CalculateTotal(this.form)" size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">TEAENG</font></td>
                                    <td><font size="-2" face="Arial"><strong>ENGLISH 
                                      BREAKFAST</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">500s</font></td>
                                    <td><font size="-2" face="Arial">$34.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_EnglishBreakfast_34.90" type="text"  size="6" onchange="CalculateTotal(this.form)"/>
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">TEAEARL</font></td>
                                    <td><font size="-2" face="Arial"><strong>EARL 
                                      GREY</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">500s</font></td>
                                    <td><font size="-2" face="Arial">$34.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_EarlTea_34.90" id="PROD_EarlTea_34.90" onchange="CalculateTotal(this.form)" type="text"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">TEAHERB</font></td>
                                    <td><font size="-2" face="Arial"><strong>Blackcur/Mango/Peach/Raspberry/Vanilla/Ginger/Lemon</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">100s</font></td>
                                    <td><font size="-2" face="Arial">$14.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_HerbalTea_14.90" onchange="CalculateTotal(this.form)" type="text"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td class="code"><font size="-2" face="Arial">SUGCAS4</font></td>
                                    <td><font size="-2" face="Arial"><strong>SUGAR 
                                      CASTOR</strong></font></td>
                                    <td><font size="-2" face="Arial">5</font></td>
                                    <td><font size="-2" face="Arial">4kg</font></td>
                                    <td><font size="-2" face="Arial">$10.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_SugarCastor_10.90" type="text"  onchange="CalculateTotal(this.form)" size="6" />
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td class="code"><font size="-2" face="Arial">SUGCAS1</font></td>
                                    <td><font size="-2" face="Arial"><strong>SUGAR 
                                      CASTOR</strong></font></td>
                                    <td><font size="-2" face="Arial">20</font></td>
                                    <td><font size="-2" face="Arial">500gm</font></td>
                                    <td><font size="-2" face="Arial">$1.70</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_SugarCastor_1.70" type="text" onchange="CalculateTotal(this.form)"  size="6" />
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td class="code"><font size="-2" face="Arial">SUGSTIX</font></td>
                                    <td><font size="-2" face="Arial"><strong>SUGAR 
                                      STICKS</strong></font></td>
                                    <td>&nbsp;</td>
                                    <td><font size="-2" face="Arial">2000</font></td>
                                    <td><font size="-2" face="Arial">$39.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_SugarSticks_39.90"  onchange="CalculateTotal(this.form)" type="text"  size="6" />
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">SOUPCHIC</font></td>
                                    <td class="description"><font size="-2" face="Arial"><strong>CHICKEN 
                                      SOUP</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;750gm</font></td>
                                    <td><font size="-2" face="Arial">$23.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_ChickenSoup_23.90" onchange="CalculateTotal(this.form)" type="text"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td class="code"><font size="-2" face="Arial">SOUPVEG</font></td>
                                    <td class="description"><font size="-2" face="Arial"><strong>CREAM 
                                      OF VEGE SOUP</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;750gm</font></td>
                                    <td><font size="-2" face="Arial">$23.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_CremeOfVegeSoup_23.90" onchange="CalculateTotal(this.form)" type="text"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">SOUPMCH</font></td>
                                    <td class="description"><font size="-2" face="Arial"><strong>MAGGI 
                                      CHICKEN</strong></font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;1kg</font></td>
                                    <td><font size="-2" face="Arial">$33.90</font></td>
                                    <td> <div align="right"> 
                                        <input name="PROD_MaggiChicken_33.90" onchange="CalculateTotal(this.form)" type="text"  size="6" />
                                    </div></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">SOUPMTOM</font></td>
                                    <td class="description"><font size="-2" face="Arial">MAGGI 
                                      TOMATO</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;1kg</font></td>
                                    <td><font size="-2" face="Arial">$30.90</font></td>
                                    <td><input name="PROD_MaggiTomato_30.90" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">CUPPOLY</font></td>
                                    <td class="description"><font size="-2" face="Arial">POLY 
                                      THERMO</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;500</font></td>
                                    <td><font size="-2" face="Arial">$34.90</font></td>
                                    <td><input name="PROD_PolyThermo_34.90" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">CUPV245</font></td>
                                    <td class="description"><font size="-2" face="Arial">VEND 
                                      CUP-245ml-BY-73mm</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;2000</font></td>
                                    <td><font size="-2" face="Arial">$214.90</font></td>
                                    <td><input name="PROD_VendCup245ml_214.00" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">CUPV200</font></td>
                                    <td class="description"><font size="-2" face="Arial">VEND 
                                      CUP-200ml-BR-70mm</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;2000</font></td>
                                    <td><font size="-2" face="Arial">$214.90</font></td>
                                    <td><input name="PROD_VendCup200ml_214.90" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">CUPDEC</font></td>
                                    <td class="description"><font size="-2" face="Arial">CUP-290ml</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;1000</font></td>
                                    <td><font size="-2" face="Arial">$135.00</font></td>
                                    <td><input name="PROD_Cup290ml_135.00" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">LIDSV245</font></td>
                                    <td class="description"><font size="-2" face="Arial">VENDING 
                                      CUP LIDS 245ml</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;1000</font></td>
                                    <td><font size="-2" face="Arial">$135.00</font></td>
                                    <td><input name="PROD_VendingCupLids_135.00" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFF2F2"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">LIDSDEC</font></td>
                                    <td class="description"><font size="-2" face="Arial">290ml 
                                      Silver Lid</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;1000</font></td>
                                    <td><font size="-2" face="Arial">$135.00</font></td>
                                    <td><input name="PROD_Silverlid_135.00" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">STIRWOOD</font></td>
                                    <td class="description"><font size="-2" face="Arial">STIRRERS 
                                      WOODEN</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;2000</font></td>
                                    <td><font size="-2" face="Arial">$12.90</font></td>
                                    <td><input name="PROD_stirWood_12.90" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="25" class="code"><font size="-2" face="Arial">STIRPLAST</font></td>
                                    <td class="description"><font size="-2" face="Arial">STIRRERS 
                                      PLASTIC</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;</font></td>
                                    <td><font size="-2" face="Arial">&nbsp;2500</font></td>
                                    <td><font size="-2" face="Arial">$36.90</font></td>
                                    <td><input name="PROD_stirPlastic_36.90" onchange="CalculateTotal(this.form)" type="text"  size="6" /></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td height="25" colspan="6" class="code"><div align="center"> 
                                        <table width="707" border="0" cellspacing="10">
                                          <tr> 
                                            <td width="685" height="134"> <table width="569" border="0" align="center" cellpadding="0" cellspacing="0">
                                                <tr> 
                                                  <td height="31" colspan="4"><font color="#FF0000" size="-1" face="Arial"><em>All 
                                                    fields marked * are mandatory</em></font> 
                                                    <font color="#FF0000">&nbsp; </font></td>
                                                </tr>
                                                <tr> 
                                                  <td width="133"><div align="right"><font size="-1" face="Arial">Company<font color="#FF0000">*</font></font></div></td>
                                                  <td width="165"> <div align="center"> 
                                                      <input type="text" name="companyName" id="companyName" value=""/>
                                                    </div></td>
                                                  <td width="114"><div align="right"><font size="-1" face="Arial">Order 
                                                      No <font color="#FF0000">*</font></font></div></td>
                                                  <td width="157"> <div align="center"> 
                                                      <input type="text" name="OrderNumber" id="OrderNumber" value=""/>
                                                    </div></td>
                                                </tr>
                                                <tr> 
                                                  <td><div align="right"><font size="-1" face="Arial">Contact 
                                                      Name<font color="#FF0000">*</font></font></div></td>
                                                  <td> <div align="center"> 
                                                      <input type="text" name="ContactName"  id="ContactName" value=""/>
                                                    </div></td>
                                                  <td><div align="right"><font size="-1" face="Arial">Phone<font color="#FF0000">*</font></font></div></td>
                                                  <td> <div align="center"> 
                                                      <input type="text" name="PhoneNumber" id="PhoneNumber" value=""/>
                                                    </div></td>
                                                </tr>
                                                <tr> 
                                                  <td height="24"><div align="right"><font size="-1" face="Arial">Delivery 
                                                      Address<font color="#FF0000">*</font></font></div></td>
                                                  <td> <div align="center"> 
                                                      <input type="text" name="DeliveryAddress" id="DeliveryAddress" value=""/>
                                                    </div></td>
                                                  <td> <div align="right"></div></td>
                                                  <td> <div align="center"><strong><font color="#FF0000" size="-1" face="Arial">TOTAL$</font></strong> 
                                                      <input name="TOTAL" type="text"  onfocus="this.form.elements[0].focus()" value="0.00" size="6" />
                                                    </div></td>
                                                </tr>
                                                <tr> 
                                                  <td height="38">&nbsp;</td>
                                                  <td>&nbsp;</td>
                                                  <td>&nbsp;</td>
                                                  <td><div align="center"> 
                                                      <input name="Submit" type="submit" value="Confirm Order"/>
                                                    </div></td>
                                                </tr>
                                                <tr> 
                                                  <td height="38"><div align="right"><img src="Media/adobe_pdf_logo.gif" width="49" height="47" border="0" /><a href="Media/APPLICATION%20FORM.pdf">Credit 
                                                      Application Form</a></div></td>
                                                  <td colspan="2"><div align="left"></div></td>
                                                  <td>&nbsp;</td>
                                                </tr>
                                              </table></td>
                                          </tr>
                                        </table>
                                      </div></td>
                                  </tr>
                                </table>
                                <div align="right"> </div></td>
                            </tr>
                          </table>
                          <div align="center"></div>
                        </form>
                        <font color="#333399" size="4"><em><strong><br />
                        </strong></em></font> <font color="#333399" size="4"><em><strong> 
                        </strong></em></font> </td>
                    </tr>
                  </table>
                  <div align="center"></div>
                </div>
              </div>
              </td>
          </tr>
        </tbody>
      </table>
    </div>
    </body></html>

    And here is the PHP page.
    Code PHP:
    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
     
    function right(e) {
    if (navigator.appName == 'Netscape' && 
    (e.which == 3 || e.which == 2))
    return false;
    else if (navigator.appName == 'Microsoft Internet Explorer' && 
    (event.button == 2 || event.button == 3)) {
    alert("Permission denied.");
    return false;
    }
    return true;
    }
     
    document.onmousedown=right;
    document.onmouseup=right;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (document.layers) window.captureEvents(Event.MOUSEUP);
    window.onmousedown=right;
    window.onmouseup=right;
     
    function validateForm() {
    						if(document.order.companyName.value == "") {
    						alert("Please Enter The Value For company name ");
     
    						return false;
    						}
    						if(document.order.ContactName.value == "") {
    						alert("Please Enter The Value For contact name ");
     
    						return false;
    						}
    						if(document.order.orderNumber.value == "") {
    						alert("Please Enter The Value For order number ");
     
    						return false;
    						}
    						if(document.order.phoneNumber.value == "") {
    						alert("Please Enter The Value For phone number ");
     
    						return false;
    						}
    						if(document.order.deliveryAddress.value == "") {
    						alert("Please Enter The Value For delivery address ");
     
    						return false;
    						}
     
    		return true;
    		}
     
     
    /* This script is Copyright (c) Paul McFedries and 
    Logophilia Limited ([url]http://www.mcfedries.com/)[/url].
    Permission is granted to use this script as long as 
    this Copyright notice remains in place.*/
     
    function CalculateTotal(frm) {
        var order_total = 0
     
        // Run through all the form fields
        for (var i=0; i < frm.elements.length; ++i) {
     
            // Get the current field
            form_field = frm.elements[i]
     
            // Get the field's name
            form_name = form_field.name
     
            // Is it a "product" field?
            if (form_name.substring(0,4) == "PROD") {
     
                // If so, extract the price from the name
                item_price = parseFloat(form_name.substring(form_name.lastIndexOf("_") + 1))
     
                // Get the quantity
                item_quantity = parseInt(form_field.value)
     
                // Update the order total
                if (item_quantity >= 0) {
                    order_total += item_quantity * item_price
                }
            }
        }
     
        // Display the total rounded to two decimal places
        frm.TOTAL.value = round_decimals(order_total, 2)
     
    }
     
    function round_decimals(original_number, decimals) {
        var result1 = original_number * Math.pow(10, decimals)
        var result2 = Math.round(result1)
        var result3 = result2 / Math.pow(10, decimals)
        return pad_with_zeros(result3, decimals)
    }
     
    function pad_with_zeros(rounded_value, decimal_places) {
     
        // Convert the number to a string
        var value_string = rounded_value.toString()
     
        // Locate the decimal point
        var decimal_location = value_string.indexOf(".")
     
        // Is there a decimal point?
        if (decimal_location == -1) {
     
            // If no, then all decimal places will be padded with 0s
            decimal_part_length = 0
     
            // If decimal_places is greater than zero, tack on a decimal point
            value_string += decimal_places > 0 ? "." : ""
        }
        else {
     
            // If yes, then only the extra decimal places will be padded with 0s
            decimal_part_length = value_string.length - decimal_location - 1
        }
     
        // Calculate the number of decimal places that need to be padded with 0s
        var pad_total = decimal_places - decimal_part_length
     
        if (pad_total > 0) {
     
            // Pad the string with 0s
            for (var counter = 1; counter <= pad_total; counter++) 
                value_string += "0"
            }
        return value_string
    }
     
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
     
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
     
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
     
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
     
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    <title>Order</title>
    </head>
     
    <body MARGINHEIGHT="0" TOPMARGIN="0" bgcolor="#000000" onLoad="MM_preloadImages('Images/contact1.jpg','Images/machines.jpg','Images/ourproducts.jpg','Images/ourservice.jpg','Images/coffeeorder.jpg','Images/accessories.jpg','Images/home.jpg')">
    <div align="center" height="100%"> 
      <table width="981" border="0" cellspacing="0" id="layout" >
        <tbody>
          <tr> 
    </a><a href="Home.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','Images/home.jpg',1)"><img src="Images/home2.jpg" name="Image17" width="50" height="13" border="0" id="Image17" /></a><a href="Contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','Images/contact1.jpg',1)"><img src="Images/contact2.jpg" alt="Contact Us" name="Image11" width="80" height="13" border="0" id="Image11" /></a><a href="Machines.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','Images/machines.jpg',1)"><img src="Images/machines2.jpg" alt="Machines" name="Image12" width="72" height="13" border="0" id="Image12" /></a><a href="Accessories.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','Images/accessories.jpg',1)"><img src="Images/accessories2.jpg" name="Image13" width="91" height="13" border="0"></a><a href="Order.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','Images/coffeeorder.jpg',1)"><img src="Images/coffeeorder2.jpg" alt="Coffee Order" name="Image16" width="91" height="13" border="0" id="Image16" /></a><a href="Products.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','Images/ourproducts.jpg',1)"><img src="Images/ourproducts2.jpg" alt="Products" name="Image14" width="93" height="13" border="0" id="Image14" /></a><a href="OurService.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','Images/ourservice.jpg',1)"><img src="Images/ourservice2.jpg" alt="Our Service" name="Image15" width="83" height="13" border="0" id="Image15" /></a></div></td>
          </tr>
          <tr> 
            <td colspan="2" id="banner"><div id="headimg"><img src="Images/banner.jpg" width="981" height="126" /></div></td>
          </tr>
          <tr bgcolor="#000000"> 
            <td colspan="2" id="tagline"><img src="Images/special.jpg" width="399" height="30" />v</td>
          </tr>
          <tr bgcolor="#000000"> 
            <td id="sidebar"> <div align="center"><img src="Images/bean.jpg" width="200" height="300" align="baseline" /></div>
    /font></td>
            <td bgcolor="#FFFFFF" id="content"> <div id="contentbox"> 
                <div style=" width:778px; height:395px; overflow:auto;">
                  <table width="759" height="360" border="0" align="center" cellpadding="6" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                    <tr> 
                      <td height="356"><font color="#000000" face="Arial" size="2"><em><strong><br />
                        </strong></em></font> <blockquote style="margin-right: 0px;" dir="ltr"> 
                          <div align="center"><?php 
    		$mail_recipient = "jjjhhjgjhjh@xtra.co.nz";
    		$mail_subject = "Order";
    					$COFDECO = Trim(stripslashes($_REQUEST['PROD_beansDecoDemi_29.90']);
    					$COFGRO1kg = Trim(stripslashes($_REQUEST['PROD_plungerGroundDeco_33.90']));
    					$COFGRO250 = Trim(stripslashes($_REQUEST['PROD_PlungerGroundDeco2_9.90']));
    					$NESVEND = Trim(stripslashes($_REQUEST['PROD_VendingNescafeBag_21.30']));
    					$NESFINE = Trim(stripslashes($_REQUEST['PROD_NescafeFineBlendTin_27.90']));
    					$NESCLAS = Trim(stripslashes($_REQUEST['PROD_NesCafeClassicTin_27.90']));
    					$NESMILO = Trim(stripslashes($_REQUEST['PROD_NestleMilo_19.90']));
    					$COFCOAS = Trim(stripslashes($_REQUEST['PROD_CoastVendingInstant_34.90']));
    					$CHOCOAS = Trim(stripslashes($_REQUEST['PROD_CoastVendingChoc_13.75']));
    					$MILKWEST = Trim(stripslashes($_REQUEST['PROD_VendingMilkGranule_19.90']));
    					$TEACOAS = Trim(stripslashes($_REQUEST['PROD_CoastTeaBags_19.90']));
    					$TEABELL = Trim(stripslashes($_REQUEST['PROD_BellTeaBags_26.90']));
    					$TEANEST = Trim(stripslashes($_REQUEST['PROD_SolubleNestea_14.90']));
    					$TEALEAF = Trim(stripslashes($_REQUEST['PROD_VendingLeafTea_19.90']));
    					$TEAENG = Trim(stripslashes($_REQUEST['PROD_EnglishBreakfast_34.90']));
    					$TEAEARL = Trim(stripslashes($_REQUEST['PROD_EarlTea_34.90']));
    					$TEAHERB = Trim(stripslashes($_REQUEST['PROD_HerbalTea_14.90']));
    					$SUGCAS4 = Trim(stripslashes($_REQUEST['PROD_SugarCastor_10.90']));
    					$SUGCAS1 = Trim(stripslashes($_REQUEST['PROD_SugarCastor_1.70']));
    					$SUGSTIX = Trim(stripslashes($_REQUEST['PROD_SugarSticks_39.90']));
    					$SOUPCHIC = Trim(stripslashes($_REQUEST['PROD_ChickenSoup_23.90']));
    					$SOUPVEG = Trim(stripslashes($_REQUEST['PROD_CremeOfVegeSoup_23.90']));
    					$SOUPMCH = Trim(stripslashes($_REQUEST['PROD_MaggiChicken_33.90']));
    					$SOUPMTOM = Trim(stripslashes($_REQUEST['PROD_MaggiTomato_30.90']));
    					$CUPPOLY = Trim(stripslashes($_REQUEST['PROD_PolyThermo_34.90']));
    					$CUPV245 = Trim(stripslashes($_REQUEST['PROD_VendCup245ml_214.00']));
    					$CUPV200 = Trim(stripslashes($_REQUEST['PROD_VendCup200ml_214.90']));
    					$CUPDEC = Trim(stripslashes($_REQUEST['PROD_Cup290ml_135.00']));
    					$LIDSV245 = Trim(stripslashes($_REQUEST['PROD_VendingCupLids_135.00']));
    					$LIDSDEC = Trim(stripslashes($_REQUEST['PROD_Silverlid_135.00']));
    					$STIRWOOD = Trim(stripslashes($_REQUEST['PROD_stirWood_12.90']));
    					$STIRPLAST = Trim(stripslashes($_REQUEST['PROD_stirPlastic_36.90']));
    					$CompanyName = Trim(stripslashes($_REQUEST['companyName']));
    					$ContactName = Trim(stripslashes($_REQUEST['ContactName']));
    					$OrderNumber = Trim(stripslashes($_REQUEST['OrderNumber']));
    					$PhNumber = Trim(stripslashes($_REQUEST['PhoneNumber']));
    					$DeliveryAddress = Trim(stripslashes($_REQUEST['DeliveryAddress']));
    					$TOTAL = Trim(stripslashes($_REQUEST['TOTAL']));
     
    					$Body .= "COFDECO: Beans Demo Demi: ".$COFDECO."\n";
    					$Body .= "COFGRO1kg: Plunger ground DECO: ".$COFGRO1kg."\n";
    					$Body .= "COFGRO250: Plunger ground DECO: ".$COFGRO250."\n";
    					$Body .= "NESVEND: VENDING NESCAFE bag: ".$NESVEND."\n";
    					$Body .= "NESFINE: NESCAFE FINE BLEND tin: ".$NESFINE."\n";
    					$Body .= "NESCLAS: NESCAFE CLASSIC TIN: ".$NESCLAS."\n";
    					$Body .= "NESMILO: NESTLE MILO: ".$NESMILO."\n";
    					$Body .= "COFCOAS: COAST VENDING INSTANT: ".$COFCOAS."\n";
    					$Body .= "CHOCOAS: COAST VENDING CHOC: ".$CHOCOAS."\n";
    					$Body .= "MILKWEST: VENDING MILK GRANULE: ".$MILKWEST."\n";
    					$Body .= "TEACOAS: COAST TEA BAGS: ".$TEACOAS."\n";
    					$Body .= "TEABELL: BELL TEA BAGS: ".$TEABELL."\n";
    					$Body .= "TEANEST: SOLUBLE NESTEA: ".$TEANEST."\n";
    					$Body .= "TEALEAF: VENDING LEAF TEA: ".$TEALEAF."\n";
    					$Body .= "TEAENG: ENGLISH BREAKFAST: ".$TEAENG."\n";
    					$Body .= "TEAEARL: EARL GREY: ".$TEAEARL."\n";
    					$Body .= "TEAHERB: Blackcur/Mango/Peach/Raspberry/Vanilla/Ginger/Lemon: ".$TEAHERB."\n";
    					$Body .= "SUGCAS4: SUGAR CASTOR: ".$SUGCAS4."\n";
    					$Body .= "SUGCAS1: SUGAR CASTOR: ".$SUGCAS1."\n";
    					$Body .= "SUGSTIX: SUGAR STICKS: ".$SUGSTIX."\n";
    					$Body .= "SOUPCHIC: CHICKEN SOUP: ".$SOUPCHIC."\n";
    					$Body .= "SOUPVEG: CRÈME OF VEGE SOUP: ".$SOUPVEG."\n";
    					$Body .= "SOUPMCH: MAGGI CHICKEN: ".$SOUPMCH."\n";
    					$Body .= "SOUPMTOM: MAGGI TOMATO: ".$SOUPMTOM."\n";
    					$Body .= "CUPPOLY: POLY THERMO: ".$CUPPOLY."\n";
    					$Body .= "CUPV245: VEND CUP-245ml-BY-73mm: ".$CUPV245."\n";
    					$Body .= "CUPV200: VEND CUP-200ml-BR-70mm: ".$CUPV200."\n";
    					$Body .= "CUPDEC: CUP-290ml: ".$CUPDEC."\n";
    					$Body .= "LIDSV245: VENDING CUP LIDS 245ml: ".$LIDSV245."\n";
    					$Body .= "LIDSDEC: 290ml Silver Lid: ".$LIDSDEC."\n";
    					$Body .= "STIRWOOD: STIRRERS WOODEN: ".$STIRWOOD."\n";
    					$Body .= "STIRPLAST: STIRRERS PLASTIC: ".$STIRPLAST."\n";
    					$Body .= "Company Name: ".$CompanyName."\n";
    					$Body .= "Contact Number: ".$ContactName."\n";
    					$Body .= "Order Number: ".$OrderNumber."\n";
    					$Body .= "Phone Number: ".$PhNumber."\n";
    					$Body .= "Delivery Address: ".$DeliveryAddress."\n";
    					$Body .= "Total Cost $".$TOTAL."\n";
     
     
     
    									$headers  .= 'MIME-Version: 1.0' . "\r\n";
    									$headers .= 'Content-type: text; charset=iso-8859-1' . "\r\n";
     
    			// send email 
    $success = mail($mail_recipient, $mail_subject, $Body, $headers);
    	if($success==true) 
    	echo "Your mail has been Sent Successfully";
     
        else{
     
        echo "Your mail has Not Sent Successfully";
    } 
    			?></div>
                          <p></p>
                          <p>&nbsp;</p>
                          </blockquote>
                        </td>
                    </tr>
                  </table>
                  <div align="center"></div>
                </div>
              </div>
              </td>
          </tr>
        </tbody>
      </table>
    </div>
    </body></html>
    Last edited by JeremyW; Aug 21, 2007 at 01:51.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •