Jump to content

[SOLVED] retrive multiple selected option?


chum

Recommended Posts

I'm in a little hole, but can't seem to get out of it.

In HTML, you can make the <selected> tag to be able to select many options by holding down CTRL+click

but how to i retrieve multiple information that was selected?

 

example:

<form method="post"....>

<select name="example" multiple="multiple">

<option value=1>one</option>

<option value=2>two</option>

</select>

</form>

 

in PHP to retrieve that information would be

$_post['example']..but what if both the option are selected, how do i retrieve both of them?

Link to comment
https://forums.phpfreaks.com/topic/88437-solved-retrive-multiple-selected-option/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.