Bug #17133: Variables empty after form submission
| From: | php at pateconsulting dot com | Date: | Fri, 10 May 2002 06:53:18 +0000 |
| Subject: | Bug #17133: Variables empty after form submission | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-7366@lists.php.net to get a copy of this message | ||
From: php@pateconsulting.com
Operating system: Red Hat 7.2
PHP version: 4.2.0
PHP Bug Type: Apache2 related
Bug description: Variables empty after form submission
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
--
Edit bug report at http://bugs.php.net/?id=17133&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17133&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17133&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17133&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17133&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17133&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17133&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17133&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17133&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17133&r=globals