Location: PHPKode > scripts > Cascade Drop Down > cascade-drop-down/JSDropDown.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Dynamic Drop Down, Loads Value With out refreshing Page (Data from Database)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style4 {	font-size: 12px;
	font-family: Tahoma;
}
-->
</style>
</head>
<body>
<h5><span class="style1">Dynamic Drop Down, Loads Value With out refreshing Page (Data from Database)</span></h5>
<h5><?php
// Script to Query the Concerts Table to Display the results
/* database configuration */
$dbConfig['type']="mysql";
$dbConfig['server']="localhost";
$dbConfig['username']="username";
$dbConfig['password']="password";
$dbConfig['database']="database";
include_once("JSDropDown.class.php");
$frmObjName="JSddForm";
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
$JSdd->close_JSDropDown_database();
echo "</form>";
?>
</h5>
<p class="style4">To Check Online Help : <a href="Manual.htm">Click Here </a></p>
<p><span class="style4"><strong>&lt;gobinathm at gmail dot com&gt; </strong><strong>&nbsp;</strong></span></p>
</body>
</html>

Return current item: Cascade Drop Down