rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator"
content="HTML Tidy for Linux/x86 (vers 1st November 2002), see www.w3.org" />
<script type="text/javascript">
//<![CDATA[
function confirmit() {
var notice = "Your address is: ";
var ml = 8.99;
var mm = 9.99;
var ms = 10.99;
var hl = 8.99;
var hm = 9.99;
var hs = 10.99;
var total = 0;
var l ="large " ;
var m = "meaty" ;
if (document.order.chkmeatylarge.checked) {
total += ml +"l";
}
if (document.order.chkmeatysmall.checked) {
total += ms;
}
if (document.order.chkmeatymedium.checked) {
total += mm;
}
if (document.order.fullhousesmall.checked) {
total += hs;
}
notice = notice + order.address.value + "\n";
notice = notice + "Your total cost is: £" + total;
alert(notice);
}
function finalise() {
if (document.order.chkyuck.checked == 0) {
if (confirm("why not try our half price beetroot and mango promotion?")) {
document.order.chkyuck.checked = 1;
}
}
if (document.order.chkchick.checked == 0) {
if (confirm("why not try our half price chicken promotion?")) {
document.order.chkchick.checked = 1;
}
}
}
//]]>
</script>
<title>Pizza Website</title>
</head>
<body bgcolor="white">
<center>
<img
src="C:/Documents%20and%20Settings/Sam/My%20Documents/UNI%20WORK/IBA/images/logo2.jpg"
width="650" height="163" border="" alt="" /> <br />
<center>
<h2>Welcome to PizzaDome</h2>
If you would like to make an order please enter your Address first
</center>
<form name="order" enctype="text/plain" action="mailto:falseaddress@tiscali.co.uk">
<h1>Enter your address</h1>
<input type="" text="" size="80" name="address" />
<h1>Choose your pizza</h1>
<h3>Full house</h3>
<br />
Please only select one size <input type="checkbox" name="fullhousesmall" />Small
£ 8.99<br />
<br />
<hr />
<br />
<br />
<h3>Mighty Meaty</h3>
<input type="checkbox" name="chkmeatysmall" />Small £ 8.99 <input
type="checkbox" name="chkmeatymedium" />med £ 8.99 <input type="checkbox"
name="chkmeatylarge" />large £ 8.99
<hr />
<h3>Cheese and Tomato</h3>
<img src="images/logopizza.jpg" width="50" height="50" border="0" alt="" />
<hr />
<h3>Mexican Style</h3>
<br />
<br />
<br />
<p><input type=button value="confirm choice" onclick="confirmit()"; /> <input
type=button value="finalise" onclick="finalise();" /> <input type=submit
name="submit" value="submit order" /></p>
</form>
</center>
</body>
</html>