HTMLSelectList: Generate HTML form select inputs

Recommend this page to a friend!
  Info   Screenshots   View files (3)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 448 All time: 6,097 This week: 411
Version License PHP version Categories
class_html_select 1.0Freely Distributable5HTML, PHP 5
Description Author

This is a simple class that can be used to generate HTML form select inputs.

It builds a select input from a list of items that can be added individually specifying the item value, the item text to display and whether the item should appear initially selected.

The select input name, number of visible items, and other optional elements are configurable.

The HTML for the whole select input is returned as a string.

Picture of Jeff Williams
  Performance   Level  
Name: Jeff Williams <contact>
Classes: 6 packages by
Country: United States United States
Age: 40
All time rank: 383 in United States United States
Week rank: 58 6 in United States United States
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • htmlselectlistclass.gif
  Files  
File Role Description
htmlselectlist.class.php Class main HTML Select List class file
example.php Example A simple example for the HTMLSelectList class
example_states.php Example Example File (US States)

 Version Control Unique User Downloads Download Rankings  
 0%
Total:448
This week:0
All time:6,097
This week:411

For more information send a message to info at phpclasses dot org.