mkkrish 12:17:11 | I want to program two conditional dorpdown lists . First Drop down is States of Country Second dropdown is Districts of the Selected State (in dropdown 1) Third blockdown is Blocks of Selected District and State (drop2 and drop 1) I followed the dd3.php sample. I am getting State Name , District Name and Bliock Name in all 3 drop down lists. But jvaascript is is not refreshing the screen for selected State and selected Districts. Can anyone help. |
cabalsdemon 06-09-2012 | did you change your name of the dropdowns <select name='cat' <-- that name if so you need to name the javascript val=form.cat <--that name<-.options[form.cat<--and that name<-.options.selectedIndex].value; or whatever you changed your name of the selct name to |
snhlawy 02-23-2015 | i have the below error when trying to read arabic charaters from DB to be displayed in the dropdown menu but if i read english charaters it works fine please help. the error message is SCREAM: Error suppression ignored for ( ! ) Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Autoservice website & system\inventory\pqty.php on line 132 my code is <select name="owner"> <?php mysql_connect("localhost","snhlawy","thena7labee") or die("Couldn't connect."); mysql_select_db("data") or die ("Couldn't select db."); $sql = mysql_query("SELECT desc FROM inventory"); while ($row = mysql_fetch_array($sql)){ ?> <option value="owner1"><?php echo $row['desc']; ?></option> <?php // close while loop } ?> |