PDA

View Full Version : Insert a form within a form



stevenbhn
10 Feb 2006, 06:15 AM
Hi I am deisgning a website at the moment, it has a booking form on its own page.
The booking form has alot of fields all work fine although now i have been told that one of the menus needs to be multiple selectable. I have a code that allows me to do this but the code needs to target a form to run the script. I cant have this script work on any other feild barr the one i want so now I think i need to add a form within a form but i cant seem to do this.

Any ideas please post.

Hope this makes some sence

cheers

steven

aaronabaci
10 Feb 2006, 05:16 PM
This menu you speak of is a "select" form option, eh?
And you want people to be able to choose more than one option.

cause if that's the case putting "multiple" in the select tag should work

like:

<select name='pets' multiple>
<option value='cat'>Cat</option>
.
.
.
</select>

I hope that helps you. and if you're doing XHtml it might want you to say "multiple='multiple'"

And you'd probably want to give it a 'size' attribute as well... *shrug*