Hi! Charlie,
Please go through the following example & test it:

<!-- HTML code -->
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<select name="test[]" multiple="multiple">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
<option value="four">four</option>
<option value="five">five</option>
</select>
<input type="submit" value="Send" />
</form>

<!-- PHP Code -->

<?php
$test=$_POST['test'];
if ($test){
foreach ($test as $t){echo 'You selected ',$t,'<br />';}
}
?>
In the above example the values selected in multiple select box gets
printed in the page under the foreach() loop, but in ur case u need
insert in the database or to any field as per your need.

I hope it will give u some idea about of how multiple selection works.
Though if u come across any further doubts do ping me back.

With regards,
-Dips


--- In [email protected], "Charlie Markwick" <[EMAIL PROTECTED]> wrote:
>
> I have been trying to ascertain how multiple selections get passed
from
> a list box and how to handle them for insertion into a field. Can
> someone point me in the direction to a tutorial for this.
>
> TIA
>
> Charlie
>



[Non-text portions of this message have been removed]

Reply via email to