Adding selections from a multi select dropdown/list
Storing the selections, assuming 2 or more, in a single sql table field
Can anyone point to any tutorials or advice for this topic?
Thanks, Paul
Storing the selections, assuming 2 or more, in a single sql table field
Can anyone point to any tutorials or advice for this topic?
Thanks, Paul
Just name the field with brackets like: name="myselect[]"
Then multiple selections will be submitted as an array. Then you can concatenate the array into a string using the implode function like:
<?php echo(implode(", ",$_POST['myselect'])); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.