Web Analytics Made Easy -
StatCounter i don't know how to see the values i select in a list form - CodingForum

Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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.

    Comment

    Working...
    X