The Basic requirement for me to write a class of this kind is to avoid the page refreshing when it has two drop downs which is depend on another (like parent and child).
When the page needs to be reloaded it is not pleasant for the users to wait until the page reload is complete, especially when their Internet to the server is slow.
There is also a function which is responsible for generating the HTML code for the select input.
By : gobinathm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<title>Drop Down Based on First Value</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
// Script to Query the Concerts Table to Display the results
/* database configuration */
echo "<form name=\"$frmObjName\" method=\"post\">";
$JSdd = new JSDropDown($dbConfig);
$JSdd->DataFetch(); // Call the Function which will fetch the data.
$JSdd->createfrmObject($frmObjName); // Pass the Current Form name as the parameter
Click to Download File