PHP Classes

Cascade Select: Generate two dependent 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
StarStarStarStar 62%Total: 2,003 All time: 1,965 This week: 488Up
Version License Categories
cascadeselect 1.0.0GNU General Publi...HTML
Description 

Author

This class is meant to generate two HTML form select type inputs making the currently selected value on the first input determine the option values that are made available on the second.

It uses JavaScript to update the second input options when the first input changes.

The class comes with an example that defines the options for both input from data defined by arrays, and also an example that retrieves the options values from MySQL database query results.

Picture of Vedanta Barooah
Name: Vedanta Barooah <contact>
Classes: 11 packages by
Country: United States United States
Age: 44
All time rank: 497 in United States United States
Week rank: 43 Up5 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

Winner: 2x

Recommendations

Defining an attendee list fom a user list
Dynamic Drop Downs

How to create two related dropdown list boxes
Link a second dropdown list box with the first one

Screenshots (1)  
  • cascadeselect.gif
  Files folder image Files (8)  
File Role Description
Plain text file cascadeSelect.php Class Main Class File
Plain text file cascadeSelect.sql Data Suggested SQL Schema
Plain text file comments.txt Doc. Comments
Plain text file cs_db_example.php Example Database Example
HTML file cs_doc.html Doc. Documentation
Plain text file cs_example.php Example Simple Example
Plain text file mysqlCascadeSelect.php Aux. MySQL Helper Functions

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:2,003
This week:0
All time:1,965
This week:488Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:72%StarStarStarStar
Documentation:80%StarStarStarStarStar
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:950