How to get a submited query to go onto another page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chris h
    New Member
    • Jan 2011
    • 2

    #1

    How to get a submited query to go onto another page?

    Hello my name is chris i am a new programer learning html.I am trying to make a bakery website that i need to allow people to order off of and the information be sent to the store. its for a class project.
    I need help i have the questions made but i dont know how to input the query to a final page ..ie checkout.

    Code:
    <form action="insert.php" method="post">
    <center>pan size( all are 2" high): <select name="qantity"> 
    <option value="1">6</option>
    <option value="1">9</option>            
    <option value="1">10</option> 
    <option value="1">12</option> 
    <option value="1">15</option> 
    </select> 
    <br> 
    <input type="submit"> 
    </form>
    <form action="insert.php" method="post">
    <center>layers: <select name="qantity"> 
    <option value="1">1</option>
    <option value="1">2</option>            
    <option value="1">3</option> 
    <option value="1">4</option> 
    <option value="1">5</option> 
    </select> 
    <br> 
    <input type="submit"> 
    </form> 
    <form action="insert.php" method="post">
    <center>Icing flavor: <select name="qantity"> 
    <option value="1">butter cream vanilla</option>
    <option value="1">butter cream Chocolate</option>            
    </select> 
    <br> 
    <input type="submit"> 
    </form>
    Code:
    <form action="insert.php" method="post">
    <center>Qty in dozen: <select name="qantity"> 
    <option value="1">1</option> 
    <option value="1">2</option>
    <option value="1">3</option>
    <option value="1">4</option>
    <option value="1">5</option>
    <option value="1">6</option>
    <option value="1">7</option>            
    <option value="1">8</option> 
    <option value="1">9</option> 
    <option value="1">10</option> 
    </select> 
    <br> 
    <input type="submit"> 
    </form>
    Code:
    <form action="insert.php" method="post">
    <center>pan size( all are 1.5" high): <select name="qantity"> 
    <option value="1">6</option>
    <option value="1">9</option>            
    <option value="1">10</option> 
    <option value="1">12</option> 
    </select> 
    <br> 
    <input type="submit"> 
    </form>
    <form action="insert.php" method="post">
    <center>top layer whole or grid: <select name="qantity"> 
    <option value="1">whole</option>
    <option value="1">grid</option>            
    </select> 
    <br> 
    <input type="submit"> 
    </form> 
    <form action="insert.php" method="post">
    <center>Qty of pies: <select name="qantity"> 
    <option value="1">1</option> 
    <option value="1">2</option>
    <option value="1">3</option>
    <option value="1">4</option>
    <option value="1">5</option>
    <option value="1">6</option>
    <option value="1">7</option>            
    <option value="1">8</option> 
    <option value="1">9</option> 
    <option value="1">10</option> 
    </select> 
    <br> 
    <input type="submit"> 
    </form>
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    first, your dropdowns/selects are pointless if you give every option the same value (currently, no matter what you select, the passed value will be 1).

    what do you mean by "go to another page"? the page you load will be the one specified in the form’s action attribute. what its contents are is decided on the server.

    Comment

    • Chris h
      New Member
      • Jan 2011
      • 2

      #3
      By go to another page I mean like a checkout page so the customer would find there selection then hit submit to ad to a cart page so they can checkout or continue to shop

      Comment

      Working...