#19375 [Opn->Bgs]: Calling a php page from an html form

From: Date: Thu, 12 Sep 2002 13:56:39 +0000
Subject: #19375 [Opn->Bgs]: Calling a php page from an html form
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19244@lists.php.net to get a copy of this message
ID: 19375 Updated by: derick@php.net Reported By: Agostino.Calamita@italtel.it -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows PHP Version: 4.2.3 New Comment: Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2002-09-12 08:54:42] Agostino.Calamita@italtel.it Hi, I installed PHP 4.2.3 on a Windows NT workstation with Xitami Web Server 2.4d9. I have a simple html page with a form like this: <FORM NAME="myname" METHOD="POST" ACTION="test.php"> <INPUT TYPE=TEXT NAME="myfield" SIZE=20> <INPUT TYPE=submit> </FORM> and a simple php file (test.php) like this: <HTML> <BODY> <?php echo "Your field is: "; echo $myfield; ?> </BODY> </HTML> When I use the submit the form, PHP executes test.php and give my this page: Your field is: Notice: Undefined variable: myfield in C:\Xitami\webpages\test.php on line 5 If I unistall PHP 4.2.3 and install PHP 4.1.1, everything works fine and I got what I wrote inside myfield. I don't know if this is a bug or a security problem. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19375&edit=1

« previous php.bugs (#19244) next »