Jump to content

RORJACK

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by RORJACK

  1. Hi guys, running through this tutorial at the moment:

     

    http://www.tizag.com/phpT/forms.php

     

    I seem to keep having problems with the $_POST variable. Is that obsolete syntax now?

     

    Here's the part I get an error on:

     

    <html>

    <body>

    <?php

    $quantity=$_POST['quantity'];

    $item=$_POST['item'];

     

    echo "You ordered".$quantity."".$item.".<br/>.";

    echo "Thank you for ordering from Boombaby art supppplies!";

     

    ?>

    </body>

    </html>

     

     

    Here's the error:

     

     

    ( ! ) Notice: Undefined index: quantity in C:\wamp\www\process.php on line 4

    Call Stack

    # Time Memory Function Location

    1 0.0009 363936 {main}( ) ..\process.php:0

     

    ( ! ) Notice: Undefined index: item in C:\wamp\www\process.php on line 5

    Call Stack

    # Time Memory Function Location

    1 0.0009 363936 {main}( ) ..\process.php:0

    You ordered.

    .Thank you for ordering from Boombaby art supppplies!

     

     

     

    Any help would be appreciated. I tried googling but everything didn't seem to answer my question or was too confusing.

     

    Thanks.

  2. thanks guys,

     

    I can't find the specific tutorial I was using on that site, but $PHP_SELF was giving me trouble, but then replaced it with:

     

    $_SERVER['PHP_SELF']

     

    which seemed to be a newer type of syntax.

     

    Also it kept having me put in semicolons before <b/>, which just showed up on the localhost webpage and didn't seem to perform any real function.

     

    In any case, I think I'm just grasping at straws here as I start out. Thanks for the advice.

     

    Any thoughts on Lynda.com?

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.