View Full Version : listbox in php
03-13-2010, 12:55 PM
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.
03-13-2010, 01:06 PM
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/.
03-13-2010, 01:17 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.