php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43374 loading select boxes from database and executing PHP in IE is not working
Submitted: 2007-11-22 12:24 UTC Modified: 2007-11-24 12:28 UTC
From: balu at ap dot nic dot in Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.2CVS-2007-11-22 (snap) OS: windows xp with sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: balu at ap dot nic dot in
New email:
PHP Version: OS:

 

 [2007-11-22 12:24 UTC] balu at ap dot nic dot in
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-24 12:28 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 11:01:29 2024 UTC