Bug #17378 Updated: Getting Undefined Variable: error for variable taken from html page calling it.

From: Date: Mon, 03 Jun 2002 17:45:46 +0000
Subject: Bug #17378 Updated: Getting Undefined Variable: error for variable taken from html page calling it.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9364@lists.php.net to get a copy of this message
ID: 17378 Updated by: kencam@u.washington.edu Reported By: sheenathilak@hotmail.com Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows NT PHP Version: 4.2.1 New Comment: Same problem when running 1.3.23 Apache: "Notice: Undefined variable: author in c:\apache\htdocs\text.php on line 5" Note: IIS is also installed on same machine, though disabled. Previous Comments: ------------------------------------------------------------------------ [2002-05-23 03:10:06] derick@php.net http://www.jdimedia.nl/derick/20020502.php ------------------------------------------------------------------------ [2002-05-23 03:06:47] sheenathilak@hotmail.com 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 this bug report at http://bugs.php.net/?id=17378&edit=1

« previous php.bugs (#9364) next »