#26958 [NEW]: html form value="<?echo "$var_name";>" undefine variable $var_name
| From: | rrubio at wideline dot com dot au | Date: | Sun, 18 Jan 2004 23:22:35 +0000 |
| Subject: | #26958 [NEW]: html form value="<?echo "$var_name";>" undefine variable $var_name | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-53543@lists.php.net to get a copy of this message | ||
From: rrubio at wideline dot com dot au
Operating system: XP Professional
PHP version: 4.3.4
PHP Bug Type: IIS related
Bug description: html form value="<?echo "$var_name";>" undefine variable
$var_name
Description:
------------
I have an HTML form, where i would like to <? echo "$varname"; ?> to the
actual input fields "value=" once submitted. On load of form $varname =
"". I receive the following message "Notice Undefined Variable varname". I
am using IIS 5.1 and have changed "register_globals = On".
NOTE: The same form works perfectly under PHP 4.1.5, win 2000
professional/PWS.
Reproduce code:
---------------
<?php
if($submit == "find"){
function_name();
}
?>
<html>
<body>
<form="formname" method="get" action="file.php">
<input type="text" name="fname" value="<? echo
"$fname"; ?> ">
</form>
</body>
</html>
Expected result:
----------------
Once the form is submitted to "find" the $varname would be populated with
a value, to then display on the fields actual value="". To update and so
forth.
--
Edit bug report at http://bugs.php.net/?id=26958&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26958&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26958&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26958&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26958&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26958&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26958&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26958&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26958&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26958&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26958&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26958&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26958&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26958&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26958&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26958&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26958&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26958&r=float