Re: password protection - does this work?

From: MS (SpamNoThnx_santa____clause_at_hotmail.com)
Date: 02/22/05


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
----------------------------------------------------------------------------


Relevant Pages

  • Re: password protection - does this work?
    ... would I need that for password protection? ... an intruder could ... > usually can 'get' the variable from the query string automagically. ... to retrieve the passed value of password ...
    (comp.lang.php)
  • Re: password protection - does this work?
    ... >> found some other scripts out there that used the auth headers, ... would I need that for password protection? ... the password in the query string, but he'd still have to know the password. ...
    (comp.lang.php)
  • Re: password protection - does this work?
    ... >> found some other scripts out there that used the auth headers, ... would I need that for password protection? ... the password in the query string, but he'd still have to know the password. ...
    (alt.php)
  • RE: search mechanism
    ... Does anbody know how the SQL ... Query String should look like, when I want to retrieve all titles of the ...
    (microsoft.public.sqlserver.datamining)
  • RE: search mechanism
    ... Does anbody know how the SQL ... Query String should look like, when I want to retrieve all titles of the ...
    (microsoft.public.pocketpc.developer)