Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: listbox in php

  1. #1
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    listbox in php

    Hi,
    I need multiple selection drop downbox. means when we click on it drop down list should be open & after selection it must be closed automatically.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I need multiple selection drop downbox. means when we click on it drop down list should be open & after selection it must be closed automatically.
    It's the default behaviour of a drop down <select> tag. See http://htmldog.com/reference/htmltags/select/.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Jul 2009
    Posts
    136
    Thanks
    0
    Thanked 7 Times in 7 Posts
    As you are in the PHP forum I guess you wanted to know how to generate such a list using PHP. You certainly didn't say that!

    As with generating any HTML you just need to echo the tags as defined on that link abduraooft posted. If the data is coming from a database you'll need a while loop.


  •  

    Posting Permissions

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