Well, I assume it should come back as an array anyway. Try the below.
Change your code to:
HTML Code:
<select size="6" id="selectedOptions" name="selectedOptions" style="width:300px" multiple>
<option value="7">For-Businesses</option>
<option value="15">For-Consumers</option>
<option value="1">Home</option>
</select>
Then with PHP, use:
PHP Code:
<?php $selectedOptions = $_POST['selectedOptions']; //$selectedOptions should be an array if more than one is selected. I think.
if(is_array($selectedOptions)){ // More than one was selected } else { // Only one or none were selected } ?>
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
Last edited by rogem002; 09-25-2007 at 11:18 AM..
|