PHP Classes

HTMLSelectList: Generate HTML form select inputs

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 454 All time: 6,146 This week: 455Up
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: 7 packages by
Country: United States United States
Age: 44
All time rank: 384 in United States United States
Week rank: 14 Up3 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Screenshots (1)  
  • htmlselectlistclass.gif
  Files folder image Files (4)  
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)

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:454
This week:0
All time:6,146
This week:455Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1446