|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17133 Variables empty after form submission
Submitted: 2002-05-10 02:53 UTC Modified: 2002-05-10 03:40 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: php at pateconsulting dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.0 OS: Red Hat 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at pateconsulting dot com
New email:
PHP Version: OS:


 [2002-05-10 02:53 UTC] php at pateconsulting dot com
I have 2 files:  index.html and user-auth.php.  The index.html gathers the data and sends it to user-auth.php via a simple form using the get method.

<form method="get" action="user-auth.php" name="login">
<table border="0" align="center">
<td>Username:</td><td><input type="text" name="username"></td>
<td>Password:</td><td><input type="password" name="password"></td>
<p align="center"><input type="submit" name="btnsubmit" value="Login"></p>

echo "Usename: $username<br>Password: $password";

The variable values appear in the url:

However, nothing appears on the user-auth.php page even though the echo command should display them.  When I do a View -> Source, all I see is "<br>".


Kevin Pate
Pate Consulting


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-10 03:40 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See for more info.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 01:01:28 2024 UTC