php.net |  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
Votes:1
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
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: 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.

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

user-auth.php
----------------------------------------
<?
echo "Usename: $username<br>Password: $password";
?>
------------------------------------

The variable values appear in the url:
http://192.168.1.73/user-auth.php?username=user&password=&btnsubmit=Login

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>".

Thanks,

Kevin Pate
RHCE / MCSE / CCNA
Pate Consulting

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-10 03:40 UTC] derick@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See http://www.php.net/release_4_2_0.php for more info.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 04:01:29 2024 UTC