need help with post method

Discussion in 'PHP' started by imsoflyoh, Jul 31, 2009.

  1. #1
    ok i have a new site ( http://gamewars.x10hosting.com/ ). I want to have it so they can post the information that they give, and other people can go to that page and they can see all the available post that have been posted. If you go to my site click on xbox, then click post wars. Then enter in any info then look and you will see that it is only posting the top two info given.


    HTML CODE
    <html>

    <head>
    <style type="text/css">
    body
    {
    background-color:#73a65a;
    }

    div.banner
    {
    width:450px;
    height:80px;
    background:url('http://gamewars.x10hosting.com/images/xbox360banner.jpg') no-repeat;
    border:0px solid black;
    margin:0px 125px;
    }

    div.form
    {
    width:500px;
    height:250px;
    border:0px solid black;
    margin:80px 250px;
    }
    </style>
    </head>

    <body>
    <div class="banner">
    </div>
    <div class="form">
    <form action="postwarsxbox360.php" method="post">
    Game:
    <input type="text" name="firstname" />
    <br />
    Gamertag:
    <input type="text" name="lastname" />
    <br>
    Time and date 00:00 0/0/09:
    <input type="text" name="quantity" />
    <br>
    <h4>Number Of Rounds</h4>
    <select name="items">
    <option value="1" selected="selected">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
    <option value="more">more</option>
    </select>
    <br>
    <h4>Number Of Players</h4>
    <select name="number of players">
    <option value="1" selected="selected">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
    <option value="more">more</option>
    </select>
    <br>
    <input type="submit" />
    </form>
    </div>

    </body>

    </html>





    php code

    <html>
    <body>

    Game <?php echo $_POST["firstname"]; ?>!<br />
    Gamertag <?php echo $_POST["lastname"]; ?> <br/>
    Time and date<?php echo $_post["quantity"]; ?> <br/>
    Number of Rounds <?php echo $_post["item"]; ?> <br/>
    Number of people <?php echo $_post["lname"]; ?> <br/>

    </body>
    </html>
     
    imsoflyoh, Jul 31, 2009 IP
  2. codebreaker

    codebreaker Well-Known Member

    Messages:
    281
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    That because the $_post thing.PHP variables are case sensitive so you should use $_POST.
     
    codebreaker, Jul 31, 2009 IP