Results 1 to 3 of 3

Thread: Resteraunts "Order Menu"

  1. #1
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default Resteraunts "Order Menu"

    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:
    PHP Code:
    <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>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Not another homework assignment! Geez!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    This isn't homework. It's just something they asked if I could make.

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
  •