|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-24 12:28 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 07:00:01 2025 UTC |
Description: ------------ loading select boxes from database and executing PHP in Internet Explorer and pressing submit,it is not working whereas in Mozilla browser it is working fine.what to do. Reproduce code: --------------- <? $db_name="practice"; $connection=mysql_connect("localhost","root","admin") or die("I Couldn't connect"); $db=mysql_select_db($db_name,$connection) or die("I Couldn't select your database"); $branch="mand_mast"; // Table name @$cat=$_GET['cat']; // Use this line or below line if register_global is off $quer2=mysql_query("SELECT DISTINCT mandname FROM mand_mast order by mandname"); echo "<form method=post name=f1 action='dd-check.php'>"; echo "<select name='MNAME' onchange=\"reload(this.form)\"> <option value=''>Select one</option>"; while($noticia2 = mysql_fetch_array($quer2)) { if($noticia2['mandname']==@$cat){echo "<option selected value='$noticia2[mandname]'>$noticia2[mandname]</option>"."<BR>";} else{echo "<option value='$noticia2[mandname]'>$noticia2[mandname]</option>";} } echo "</select>"; echo "</form>"; ?> Expected result: ---------------- I want to make it send the data selected in select box to database but it is not doing.