Results 1 to 2 of 2

Thread: Insert a form within a form

  1. #1
    Join Date
    Feb 2006
    Posts
    26

    Insert a form within a form

    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

  2. #2
    Join Date
    Mar 2005
    Posts
    36
    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*
    Sincerely, Aaron Abaci

    PHP Designer looking for experience. Please contact me with ideas. Will work for free. See my forum

Similar Threads

  1. insert values from indexed array into html form button (PHP)
    By boognish in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 10 Jan 2006, 07:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •