Login   Register  
PHP Classes
elePHPant
Icontem

HTMLSelectList: Generate HTML form select inputs

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-02-22 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 436 All time: 5,698 This week: 1,585Up
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
Name: Jeff Williams <contact>
Classes: 5 packages by
Country: United States United States
Age: 43
All time rank: 424 in United States United States
Week rank: 15 Up3 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

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

 Version Control Unique User Downloads Download Rankings  
 0%Total:436All time:5,698
 This week:0This week:1,585Up