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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 - 29 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 13:01:30 2024 UTC