php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19375 Calling a php page from an html form
Submitted: 2002-09-12 08:54 UTC Modified: 2002-09-12 09:06 UTC
From: Agostino dot Calamita at italtel dot it Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.3 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Agostino dot Calamita at italtel dot it
New email:
PHP Version: OS:

 

 [2002-09-12 08:54 UTC] Agostino dot Calamita at italtel dot 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-12 08:56 UTC] derick@php.net
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.
 [2002-09-12 09:06 UTC] sander@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 08:00:02 2026 UTC