...

View Full Version : listbox in php



simran
03-13-2010, 11:55 AM
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.

abduraooft
03-13-2010, 12: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/.

DaiLaughing
03-13-2010, 12: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum