#43374 [NEW]: loading select boxes from database and executing PHP in IE is not working

From: Date: Thu, 22 Nov 2007 12:24:53 +0000
Subject: #43374 [NEW]: loading select boxes from database and executing PHP in IE is not working
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119952@lists.php.net to get a copy of this message
From: balu at ap dot nic dot in Operating system: windows xp with sp2 PHP version: 5.2CVS-2007-11-22 (snap) PHP Bug Type: Dynamic loading Bug description: loading select boxes from database and executing PHP in IE is not working 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. -- Edit bug report at http://bugs.php.net/?id=43374&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43374&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43374&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43374&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43374&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43374&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43374&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43374&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43374&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43374&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43374&r=support Expected behavior: http://bugs.php.net/fix.php?id=43374&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43374&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43374&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43374&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43374&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43374&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43374&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43374&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43374&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43374&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43374&r=mysqlcfg

« previous php.bugs (#119952) next »