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
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i don't know how to see the values i select in a list form

    I want to see the values wich i select in a list form.

    The code is :
    "
    <select name="categoria_insert" size="3" id="categoria_insert">
    <option>A</option>
    <option>B</option>
    <option>C</option>
    <option>D</option>
    <option>E</option>
    </select>
    "

    If i select options 'A' and 'D', for example, the value posted in $_POST['categoria_insert'] when i push the submit button is only 'D', not 'A' and 'D'.

    Help me please.
    Thank you.

  • #2
    Regular Coder
    Join Date
    Feb 2006
    Location
    The Netherlands
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mobutu_LM2006 View Post
    I want to see the values wich i select in a list form.

    The code is :
    "
    <select name="categoria_insert" size="3" id="categoria_insert">
    <option>A</option>
    <option>B</option>
    <option>C</option>
    <option>D</option>
    <option>E</option>
    </select>
    "

    If i select options 'A' and 'D', for example, the value posted in $_POST['categoria_insert'] when i push the submit button is only 'D', not 'A' and 'D'.

    Help me please.
    Thank you.
    That's probably because select boxes aren't made to select multiple items, how about using checkboxes?

    However, maybe PHP does support it, you should do a print_r($_POST) in the processing page, if the values aren't there then PHP doesn't support it.
    Yeah that.


  •  

    Posting Permissions

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