From:             [EMAIL PROTECTED]
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=17378&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17378&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17378&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17378&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17378&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17378&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17378&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17378&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17378&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17378&r=globals

Reply via email to