Bug #17133 [Com]: Variables empty after form submission
| From: | lildurk17133 at gmail dot com | Date: | Wed, 01 Sep 2021 18:43:45 +0000 |
| Subject: | Bug #17133 [Com]: Variables empty after form submission | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236278@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=17133&edit=1
ID: 17133
Comment by: lildurk17133 at gmail dot com
Reported by: php at pateconsulting dot com
Summary: Variables empty after form submission
Status: Not a bug
Type: Bug
Package: Apache2 related
Operating System: Red Hat 7.2
PHP Version: 4.2.0
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[2002-05-10 03:40:40] 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.
------------------------------------------------------------------------
[2002-05-10 02:53:18] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=17133&edit=1