Login   Register  
PHP Classes
elePHPant
Icontem

File: JSDropDown.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gobinath Mallaiyan  >  Cascade Drop Down  >  JSDropDown.php  >  Download  
File: JSDropDown.php
Role: Example script
Content type: text/plain
Description: Script Which Uses the Class
Class: Cascade Drop Down
Generate form select inputs with dependent options
Author: By
Last change:
Date: 9 years ago
Size: 1,456 bytes
 

Contents

Class file image Download
<!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>