Forum Moderators: open

Message Too Old, No Replies

Forms questions

         

dawlish

5:31 pm on Mar 11, 2002 (gmt 0)

10+ Year Member



I'd like to set up a form where users can select options from a drop down or multiple select box and "add" options selected to a text field or comment box with the values separated by commas. Is this possible and can anyone point me in the direction of any examples.

Many thanks.

skirril

5:43 pm on Mar 11, 2002 (gmt 0)

10+ Year Member



A normal drop down box:

<form action=.. method=POST>
<select name=..>
<option value=..>Option1</option>
<option valur=..>Option2</option>
</select>
</form>

You could do as follows:

-use option1..n, and have an option other, and later on a text/textarea field, if you selected other above, please specify...

Alternatively use php together with some db to construct the form (you'll need some scripting anyway to be able to process the form data.

Skirril

skirril

5:45 pm on Mar 11, 2002 (gmt 0)

10+ Year Member



And yes of course, hello davlish, welcome ot the forums :)