CODE USED FOR THE FORM
<FORM NAME="order" ACTION="" METHOD="GET">
<select name="item" type="select-one">
<option>Paint @ £4.50</option>
<option>Brushes @ £1.23</option>
<option>Erasers @ £1.05</option>
</select>
Quantity: <input name="quantity" type="text" size="4" /><P>
<INPUT TYPE="button" NAME="button1" Value="Submit order" onClick="process(this.form)">
</FORM>
CODE USED FOR THE OUTPUT PAGE
<SCRIPT LANGUAGE="JavaScript">
function process (form) {
Quantity =form.quantity.value;
nQuantity = parseInt(Quantity);
Choice = form.item.selectedIndex;
Selection = form.item[Choice].text;
Price = Selection.slice(-4);
nPrice = parseFloat(Price);
document.write("You ordered " + Quantity + " x " + Selection +"<br>");
document.write("Total price = £"+ (nPrice*nQuantity).toFixed(2)+"<br>");
document.write("Thank you for ordering from KLBS Art Supplies! ");
}
</SCRIPT>