Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: adding problem

  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adding problem

    hey
    im trying to add selection from a php form into a mysql database but it i am not sure how to.
    ive got drop down lists to make the selection from and ive given them values and i know i need to use the POST method but i just cant seem to get it to work.

    my options look like this:

    Type:
    <select name="select">
    <option value='Villa'>Villa</option>
    <option value='Caravan'>Caravan</option>
    <option value='Lodge'>Lodge</option>
    </select>
    &nbsp;
    Board:
    <select name="select">
    <option value='Full Board'>Full Board</option>
    <option value='Half Board'>Half Board</option>
    <option value='B & B'>B & B</option>
    <option value='Self-Catering'>Self-Catering</option>
    </select> &nbsp;

    hope someone can help

  • #2
    Regular Coder
    Join Date
    Sep 2005
    Location
    Liverpool
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you are using name='select' twice they need to be different, for example:
    Code:
    <select name="accomodation">
    <option value='Villa'>Villa</option>
    ...
    </select>
    
    <select name="options">
    <option value='Full Board'>Full Board</option>
    ...
    </select>
    my mind is on a permanent tangent


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •