[Nicolas]
09-28-2010, 02:40 AM
Hi. My family has troubles when remembering what they want when they go a restaurant. I was trying to make them a special order menu, which works! I just want to add features. Try it out, tell me what you think. http://kapleenmusic.webfreehosting.net/dad/choices.htm
It uses HTML and PHP. As you see, when you go the site and place an order for Taco Bell, you only fill out one drop down menu, and click on the "Submit Query", it will take you to the results, but everything else says "You are about to order 0 (null).". How to I fix it so that if they don't pick anything else but the drop down menu (or the text box), it will give them a message saying "empty"? Or something like that. I can use PHP or HTML. Thanks!
BTW, here's the code to the PHP:
<html>
<head><title>Results</title>
<script>
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script>
</head>
<body>
You are about to order <?php echo $_POST["num1"]; ?> <?php echo $_POST["choice1"]; ?>.<br>
You are about to order <?php echo $_POST["D1"]; ?> <?php echo $_POST["D2"]; ?>.<br>
You are about to order <?php echo $_POST["D3"]; ?> <?php echo $_POST["D4"]; ?>.<br>
You are about to order <?php echo $_POST["D5"]; ?> <?php echo $_POST["D6"]; ?>.<br>
You are about to order <?php echo $_POST["D7"]; ?> <?php echo $_POST["D8"]; ?>.<br>
You are about to order <?php echo $_POST["D9"]; ?> <?php echo $_POST["D10"]; ?>.<br>
You are about to order <?php echo $_POST["D11"]; ?> <?php echo $_POST["D12"]; ?>.<br>
You are about to order <?php echo $_POST["D13"]; ?> <?php echo $_POST["D14"]; ?>.<br>
You are about to order <?php echo $_POST["D15"]; ?> <?php echo $_POST["D16"]; ?>.<br>
You are about to order <?php echo $_POST["D17"]; ?> <?php echo $_POST["D18"]; ?>.<br>
Customized, You are about to order:
<?php echo $_POST["T1"]; ?><br><br>
<a href="javascript:printWindow()">Print This Page</a>
<noscript>You have Javascript turned off, or your browser doesn't support it. Download IE8 (not IE9!), or FireFox.</noscript>
</body>
</html>
It uses HTML and PHP. As you see, when you go the site and place an order for Taco Bell, you only fill out one drop down menu, and click on the "Submit Query", it will take you to the results, but everything else says "You are about to order 0 (null).". How to I fix it so that if they don't pick anything else but the drop down menu (or the text box), it will give them a message saying "empty"? Or something like that. I can use PHP or HTML. Thanks!
BTW, here's the code to the PHP:
<html>
<head><title>Results</title>
<script>
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script>
</head>
<body>
You are about to order <?php echo $_POST["num1"]; ?> <?php echo $_POST["choice1"]; ?>.<br>
You are about to order <?php echo $_POST["D1"]; ?> <?php echo $_POST["D2"]; ?>.<br>
You are about to order <?php echo $_POST["D3"]; ?> <?php echo $_POST["D4"]; ?>.<br>
You are about to order <?php echo $_POST["D5"]; ?> <?php echo $_POST["D6"]; ?>.<br>
You are about to order <?php echo $_POST["D7"]; ?> <?php echo $_POST["D8"]; ?>.<br>
You are about to order <?php echo $_POST["D9"]; ?> <?php echo $_POST["D10"]; ?>.<br>
You are about to order <?php echo $_POST["D11"]; ?> <?php echo $_POST["D12"]; ?>.<br>
You are about to order <?php echo $_POST["D13"]; ?> <?php echo $_POST["D14"]; ?>.<br>
You are about to order <?php echo $_POST["D15"]; ?> <?php echo $_POST["D16"]; ?>.<br>
You are about to order <?php echo $_POST["D17"]; ?> <?php echo $_POST["D18"]; ?>.<br>
Customized, You are about to order:
<?php echo $_POST["T1"]; ?><br><br>
<a href="javascript:printWindow()">Print This Page</a>
<noscript>You have Javascript turned off, or your browser doesn't support it. Download IE8 (not IE9!), or FireFox.</noscript>
</body>
</html>