Bug #51548 [Opn->Bgs]: setting the php_auth_user using login form
| From: | degeberg@php.net | Date: | Tue, 13 Apr 2010 10:38:34 +0000 |
| Subject: | Bug #51548 [Opn->Bgs]: setting the php_auth_user using login form | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149534@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51548&edit=1
ID: 51548
Updated by: degeberg@php.net
Reported by: ram at wiredhat dot com
Summary: setting the php_auth_user using login form
-Status: Open
+Status: Bogus
Type: Bug
Package: PHP options/info functions
Operating System: windows xpsp2
PHP Version: 5.2.13
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2010-04-13 12:27:42] ram at wiredhat dot com
Description:
------------
for auth-login, i don't like to have pop-up box to enter the
username/password. i like to enter the username/password in login-form.
Test script:
---------------
<?
$username = "usa";
$password = "newyork";
if(($_POST['PHP_AUTH_USER'] == $username)&& ($_POST['PHP_AUTH_PW'] ==
$password))
{
echo apache_setenv("PHP_AUTH_USER",$_POST['PHP_AUTH_USER']);
echo apache_setenv("PHP_AUTH_PW",$_POST['PHP_AUTH_PW']);
echo putenv("PHP_AUTH_USER =$_POST['PHP_AUTH_USER']");
echo putenv("PHP_AUTH_PW = $_POST['PHP_AUTH_PW']");
}
?>
<form method="post">
<p>Username : <input type="textbox" name="PHP_AUTH_USER"
id="PHP_AUTH_USER" /><br />
<p>Password : <input type="password" name="PHP_AUTH_PW"
id="PHP_AUTH_PW"
/><br />
<p> <input type="submit" name="submit" />
</form>
Expected result:
----------------
by using the phpinfo(), we need to see the _SERVER['PHP_AUTH_USER'] =
usa.
Actual result:
--------------
by using the phpinfo(), '_SERVER['PHP_AUTH_USER'] ' is totally missed..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51548&edit=1