dulcey1 wrote:
> How do I take multiple selections from the List box in a
form in Dreamweaver 8
> and post to MySQL?
Multiple select lists produce an array if anything is chosen,
but do not
appear in the $_POST array if nothing is chosen. Since the
name of your
multiple select list is appliances, you must put square
brackets after
the name in the form (name="appliances[]").
To prevent errors, check whether $_POST['appliances'] exists.
If it
does, extract the values with implode(). If it doesn't,
create an value
to indicate that nothing was selected.
$appliances = (isset($_POST['appliances'])) ? implode(',',
$_POST['appliances']) : 'None';
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/