PHP Classes

Cascade Select Associative: Generate two dependent HTML form select inputs

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,141 This week: 1All time: 3,303 This week: 560Up
Version License Categories
cascadeselectassoc 1.0GNU General Publi...HTML, Databases
Description 

Author

This class generates 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 is an enhanced version of the original class developed by Vedanta Barooah. It provides means to the define the list of dependent option values as associative arrays.

It also can define the list of options using SQL queries to a PostgreSQL database using the PEAR::DB package.

Picture of Roberto Andrade Fonseca
Name: Roberto Andrade Fonseca <contact>
Classes: 1 package by
Country: Mexico Mexico
Age: 72
All time rank: 218524 in Mexico Mexico
Week rank: 411 Up8 in Mexico Mexico Up

  Files folder image Files  
File Role Description
Plain text file cascadeSelectAssoc.php Class Main class file
Accessible without login Plain text file csa_db_example.php Example Database example from two related tables in a RDBMS
Accessible without login HTML file csa_doc.html Doc. Documentation
Accessible without login Plain text file csa_example.php Example Simple example with associative arrays
Accessible without login Plain text file csa_test_data.sql Data SQL script to create and populate a test database for cascadeSelectAssoc
Accessible without login Plain text file pgsqlCascadeSelectAssoc.php Example PostgreSQL and PEAR DB functions to retrieve the data as associative arrays

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,141
This week:1
All time:3,303
This week:560Up