Bug #15433: sending parameters from html form to a php script

From: Date: Thu, 07 Feb 2002 19:17:39 +0000
Subject: Bug #15433: sending parameters from html form to a php script
Groups: php.dev 
Request: Send a blank email to php-dev+get-79571@lists.php.net to get a copy of this message
From: netmics@hotmail.com Operating system: windows 2000 Professional PHP version: 4.1.1 PHP Bug Type: Unknown/Other Function Bug description: sending parameters from html form to a php script I have php(cgi only) on IIS 5 and I have problems to send information from an html form to a php page to process this data. The problem is that sometimes the php page doesn't catch all the variables from the html form page (in this case the value of the submit button named "aceptar"). The files are the following: -HTML from <HTML> <HEAD> </HEAD> <BODY> <FORM METHOD="get" ACTION="buscadorPhp.php"> palabra clave:<INPUT TYPE="text" name="T1"><BR> <INPUT TYPE="submit" NAME="buscar" VALUE="search"> </FORM> </BODY> </HTML> -PHP data processor <HTML> <HEAD> </HEAD> <BODY> <?php if(!isset($buscar)) { echo "debe especificar la cadena a buscar"; echo "</body></html>"; exit; } $link=mysql_connect("localhost","nobody"); mysql_select_db("mybd",$link); $result=mysql_query("select * from agenda where nombre like '%$T1%' order by nombre",$link); if($row=mysql_fetch_array($result)) { echo "<table border=1><tr>"; while($field=mysql_fetch_field($result)) { echo "<td>$field->table</td> \n"; } echo "</tr>"; do { echo "<tr><td>".$row["id"]."</td><td>".$row["nombre"]."</td><td>".$row["direccion"]."</td><td>".$row["email"]."</td></tr> \n"; }while($row=mysql_fetch_array($result)); echo "</table>"; }else echo "no se encontraron registros" ?> </BODY> </HTML> -- Edit bug report at http://bugs.php.net/?id=15433&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15433&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15433&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15433&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15433&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15433&r=support Expected behavior: http://bugs.php.net/fix.php?id=15433&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15433&r=notenoughinfo

« previous php.dev (#79571) next »