Results 1 to 1 of 1

Thread: help me with vbscript ordering system

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    14

    Red face help me with vbscript ordering system

    please anyone help me!

    if the order button click it should popup a alertbox and display the folllowing orders..

    the name of the food and how many foods,

    example in Amazing Aloha, customer want 3pcs.. it should multiply it on how much the food is..in aloha it cost 50, so 3*50 = 150..

    also in other food that customer order..and display the output with the total of his/her order..


    pleaseeeeeeeeeee..guyz i need your help!! please..


    i need to pass within 2 days Y_Y

    i really trap with this code



    Code:
    <html>
    <head>
     
     
    <style type="text/css"> 
     
    BODY {
    	margin: 0;
    	padding: 0;	
    	font-size: 8pt;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	text-align: center;
    	background: url(http://www.jollibee.com.ph/images/site_assets/bg_gradient1.jpg) #9C121F repeat-x;
    }
     
    a:link { 
    	color: white;
    	}
    a:visited { 
    	color: red;
    	}
    a:hover { 
    	color: orange;
    	background-color: maroon;
    	text-decoration: none;
    	}
    a:active { 
    	color: #333333;
    	}
     
    </style>
     
     
    
    <script language="vbscript">
    sub submit_OnClick 
    
    dim order1,order2, total1,total2
    
    order1 = document.gabz.prelimq1.value
    
    
    
    if order1= "" then
    msgbox "You must enter how many quantity you want to order, nothing means = 0"
    else
    msgbox "Total of "&total1
    end if
    end sub
    </script>
    
    
    
     
     
    <title>Jollibee</title>
     
    </br>
    </br>
    </br>
    </br>
     
    <center>
    <font color="maroon">
    <img src="http://img171.imageshack.us/img171/5057/jollibee1da8.jpg" border="4" width="600" length="100"></br>
    </font>
    <a href="http://www.google.com"><B><U>HOME</U></B></a>  |  <a href="http://www.google.com"><B><U>MENU</B></U></a>  |  <a 
    
    href="http://www.google.com"><B><U>CONTACT</B></U></a>  |  <a href="http://www.google.com"><B><U>ORDER</B></U></a>
    </center>
    </br></br></br></br></br>
    <center>
    
    <font color="white" size="16" face="papyrus"><b>~ MENU ~</font></b>
    <TABLE BORDER="3" CELLPADDING="15" CELLSPACING="15">
    <td>
    <form name=gabz>
    <center><img src="http://www.jollibee.com.ph/images/products/burger/burger_header.jpg">
    <table border="2">
    </tr>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/burger/aloha.jpg" width="200" 
    
    length="300"></br><p align="center"><b><u><font color="yellow">Amazing Aloha</font></u></b></br><i>50 Pesos</i></br></br>How 
    
    many?<input type="textbox" id="TextBox" name="prelimq1" size="5"></p> 
    </td>
    <td>
    <img 
    
    src="http://www.jollibee.com.ph/images/products/burger/cheesy_bacon.jpg" width="200" length="300"></br><p 
    
    align="center"><b><u><font color="yellow">Cheesy Bacon Mushroom</font></u></b></br><i>56 Pesos</i></br></br>How many?<input type="text"  
    
    name="prelimq2" size="5"></p>
    </td>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/burger/champ.jpg" 
    
    width="200" length="300"></br><p align="center"><b><u><font color="yellow">Champ</font></u></b></br><i>48 
    
    Pesos</i></br></br>How many?<input type="text" name="champ" size="5"></p>
    </td>
    </tr>
    <tr>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/burger/yum_cheese.jpg" width="200" 
    
    length="300"></br><p align="center"><b><u><font color="yellow">YUM! With Cheese</font></u></b></br><i> 40 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox4" name="YUM! With Cheese Burger" onclick="burjer4" size="5"></p>
    </td>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/burger/yum&#37;
    
    20TLC.JPG" width="200" length="300"></br><p align="center"><b><u><font color="yellow">YUM! With TLC</font></u></b></br><i>45 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox5" onclick="burjer5" name="Yum! with TLC Burger" size="5"></p>
    </td>
    <td>
    <img 
    
    src="http://www.jollibee.com.ph/images/products/burger/yum.jpg" width="200" length="300"></br><p align="center"><b><u><font 
    
    color="yellow">YUM!</font></u></b></br><i>35 Pesos</i></br></br>How many?<input type="text" id="TextBox6" name="YUM! 
    
    Burger"onclick="burjer6"  size="5"></p>
    </td>
    </tr>
    </table>
    </br></br>
    <center><img src="http://www.jollibee.com.ph/images/products/noodle/noodle_header.jpg"></center>
    <table border="2">
    </tr>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/noodle/spaghetti.JPG" width="200" 
    
    length="300"></br><p align="center"><b><u><font color="yellow">Jollibee Spaghetti</font></u></b></br><i>45 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox7" name="Jollibee Spaghetti" onclick="nodols7" size="5"></p> 
    </td>
    <td>
    <img 
    
    src="http://www.jollibee.com.ph/images/products/noodle/palabok.JPG" width="200" length="300"></br><p align="center"><b><u><font 
    
    color="yellow">Palabok Fiesta</font></u></b></br><i>52 Pesos</i></br></br>How many?<input type="text" id="TextBox8" name="Palabok Fiesta" 
    
    onclick="nodols8" size="5"></p>
    </td>
    </tr>
    </table>
    </br></br>
    <center><img src="http://www.jollibee.com.ph/images/products/chicken/chicken_header.jpg"></center>
    <table border="2">
    </tr>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/chicken/chickenjoy.JPG" width="200" length="300"></br><p 
    
    align="center"><b><u><font color="yellow">Chicken Joy</font></u></b></br><i>46 Pesos</i></br></br>How many?<input type="text" 
    
    id="TextBox9" name="Chicken Joy" onclick="manok9" size="5"></p> 
    </td>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/chicken/spicychix.jpg" width="200" 
    
    length="300"></br><p align="center"><b><u><font color="yellow">Spicy Chicken Joy</font></u></b></br><i>52 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox10" name="Spicy Chicken Joy" onclick="manok10" size="5"></p>
    </td>
    <td>
    <img 
    src="http://www.jollibee.com.ph/images/products/chicken/bucket.jpg" width="200" length="300"></br><p align="center"><b><u><font 
    
    color="yellow">Chickenjoy Bucket Treats</font></u></b></br><i>155 Pesos</i></br></br>How many?<input type="text" id="TextBox11" 
    
    name="Chickenjoy Bucket Treats" onclick="manok11"  size="5"></p>
    </td>
    </tr>
    </table>
    </br></br>
    <center><img src="http://www.jollibee.com.ph/images/products/jollyzerts/jollyzerts_header.jpg"></center>
    <table border="2">
    </tr>
    <td>
    <img 
    
    src="http://www.jollibee.com.ph/images/products/jollyzerts/mangocaramel%20.jpg" width="200" length="300"></br><p 
    
    align="center"><b><u><font color="yellow">Mango Caramel Surprise</font></u></b></br><i>38 Pesos</i></br></br>How many?<input type="text" 
    
    id="TextBox12" name="Mango Caramel Surprise" onclick="disirt12" size="5"></p> 
    </td>
    <td>
    <img 
    
    src="http://www.jollibee.com.ph/images/products/jollyzerts/ube_cheesy_magic.jpg" width="200" length="300"></br><p 
    
    align="center"><b><u><font color="yellow">Ube Cheesy Magic</font></u></b></br><i>48 Pesos</i></br></br>How many?<input type="text" 
    
    id="TextBox13" name="Ube Cheesy Magic" onclick="disirt13" size="5"></p>
    </td>
    <td>
    <img 
    
    src="http://www.jollibee.com.ph/images/products/jollyzerts/chocolate%20sundae.jpg" width="200" length="300"></br><p 
    
    align="center"><b><u><font color="yellow">Sundae Chocolate</font></u></b></br><i>30 Pesos</i></br></br>How many?<input type="text" 
    
    id="TextBox14" name="Sundae Chocolate" onclick="disirt14" size="5"></p>
    </td>
    </tr>
    <tr>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/jollyzerts/rocky%20road%20brownie.jpg" 
    
    width="200" length="300"></br><p align="center"><b><u><font color="yellow">Rocky Road Brownie Sundae</font></u></b></br><i>35 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox15" name="Rocky Road Brownie Sundae" onclick="disirt15" size="5"></p>
    </td>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/jollyzerts/black%20forest.jpg" 
    
    width="200" length="300"></br><p align="center"><b><u><font color="yellow">Black Forest Sundae</font></u></b></br><i>35 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox16" name="Black Forest Sundae" onclick="disirt16" size="5"></p>
    </td>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/jollyzerts/swirly%20bitz.JPG" width="200" 
    
    length="300"></br><p align="center"><b><u><font color="yellow">Swirly  Bitz Cookies n Cream</font></u></b></br><i>40 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox17" name="Black Forest Sundae" onclick="disirt17" size="5"></p>
    </td>
    </tr>
    <tr>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/jollyzerts/jolly%20krunchy%20twirl.JPG" width="200" 
    
    length="300"></br><p align="center"><b><u><font color="yellow">Jolly Krunchy Twirl Chocolate</font></u></b></br><i>46 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox18" name="Jolly Krunchy Twirl Chocolate" onclick="disirt18" size="5"></p>
    </td>
    <td>
    <img src="http://www.jollibee.com.ph/images/products/jollyzerts/zert%20pie.jpg" width="200" 
    
    length="300"></br><p align="center"><b><u><font color="yellow">Zert Pie Peach Mango Pie</font></u></b></br><i>25 
    
    Pesos</i></br></br>How many?<input type="text" id="TextBox19" name="Zert Pie Peach Mango Pie" onclick="disirt19" size="5"></p>
    </td>
    </tr>
    </table>
    
    
    </td>
    </TABLE BORDER="3" CELLPADDING="10" CELLSPACING="10">
    <p><INPUT TYPE=BUTTON VALUE="Order now!" NAME="submit"> <INPUT TYPE=RESET>
    
    </form>  
    </center>
    </br></br></br></br></br></br>
    </head>
     
    </body>
    </html>
    im sorry for my bad english..

    hope you help me..

    any help is very much appreciated and thankful..
    Last edited by gabz456; Oct 12th, 2009 at 08:17 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width