Re: Re: RE:[PHP] login scripts not secure?? help!
| From: | Scott Fletcher | Date: | Tue, 23 Mar 2004 16:16:40 +0000 |
| Subject: | Re: Re: RE:[PHP] login scripts not secure?? help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181277@lists.php.net to get a copy of this message | ||
Here's what I do, maybe this will help to give you an idea...
--snip--
<?
if ($_REQUEST['dw'] == 0) {
session_start();
$_SESSION['username'] = ****; //Wherever you got the username from...
$_SESSION['password'] = ****; //Wherever you got hte password from...
} else if ($_REQUEST['dw'] ==1) {
//blah blah
}
?>
<form *** action="page1.php?dw=0">
<a href="page1.php?dw=1">
--snip--
"Andy B" <aborka1@wmis.net> wrote in message
news:007501c410ea$372b6900$34c66dd8@andy...
> [snip]
> You can use the HTTP Authentication instead for username and password.
> [/snip]
>
> no i cant this time because the people want the login form to follow their
> color setup and stuff and with www-authenticate: box you cant do that...so
> for this project its out of the question...