Bug #17377: Getting Undefined Variable: error for variable taken from html page calling it.
| From: | sheenathilak at hotmail dot com | Date: | Thu, 23 May 2002 07:05:10 +0000 |
| Subject: | Bug #17377: Getting Undefined Variable: error for variable taken from html page calling it. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-8287@lists.php.net to get a copy of this message | ||
From: sheenathilak@hotmail.com
Operating system: Windows NT
PHP version: 4.2.1
PHP Bug Type: Scripting Engine problem
Bug description: Getting Undefined Variable: error for variable taken from html page calling it.
The content of text.html is
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM METHOD=GET ACTION=text.php>
Who is your favourite author?
<INPUT NAME="author" TYPE="TEXT">
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
The content of text.php is
<HTML>
<HEAD>
</HEAD>
<BODY>
<?php echo $author;
?>
</BODY>
</HTML>
When a name is entered and the submit button is clicked, it goes to the
text.php and shows the following error.
Notice: Undefined variable: author in
f:\Inetpub\wwwroot\Netproject\TestingSamples\text.php on line 5
PLEASE tell what to do about it AS SOON AS POSSIBLE.
--
Edit bug report at http://bugs.php.net/?id=17377&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17377&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17377&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17377&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17377&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17377&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17377&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17377&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17377&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17377&r=globals