|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-18 18:28 UTC] sniper@php.net
[2004-01-18 18:38 UTC] rrubio at wideline dot com dot au
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
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.