Re: password protection - does this work?
From: MS (SpamNoThnx_santa____clause_at_hotmail.com)
Date: 02/22/05
- Next message: Ehtor: "Re: Help: Make a php file return a zip file?"
- Previous message: John Dunlop: "Re: Help: Make a php file return a zip file?"
- In reply to: juglesh: "Re: password protection - does this work?"
- Next in thread: juglesh: "Re: password protection - does this work?"
- Reply: juglesh: "Re: password protection - does this work?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 21 Feb 2005 23:54:36 +0000 (UTC)
> > I presume you have
> >
> > $password = $_POST['password'];
> >
> > at the top of your page ?
>
> no, and that reminds me of another question.
>
> But first, would I need that for password protection? an intruder could
put
> the password in the query string, but he'd still have to know the
password.
>
> yeah, on that $_POST['password']; thing, its working fine without it, and
> for that matter, I don't usually have to use $_GET either, my scripts
> usually can 'get' the variable from the query string automagically. I
just
> use the variable that I have sent. what's up with that?
>
> juglesh
>
>
Im not sure about the automagically assigning values to variables
If you make your form POST instead of GET the passed variables of the form
are not visible within the URL
In which case you would use
$password = $_POST['password'];
to retrieve the passed value of password
If you use GET in your form the values are visible within the URL and you
would use
$password = $_GET['password'];
to retrieve the passed value of password
-- ---------------------------------------------------------------------------- http://www.clickonlingerie.com?SIG - Exotic Erotic Lingerie ----------------------------------------------------------------------------
- Next message: Ehtor: "Re: Help: Make a php file return a zip file?"
- Previous message: John Dunlop: "Re: Help: Make a php file return a zip file?"
- In reply to: juglesh: "Re: password protection - does this work?"
- Next in thread: juglesh: "Re: password protection - does this work?"
- Reply: juglesh: "Re: password protection - does this work?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|