...

View Full Version : i don't know how to see the values i select in a list form



mobutu_LM2006
09-29-2006, 01:11 PM
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.

Vin0rz
09-29-2006, 01:37 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum