If I'm correct, 'REQUEST' will catch both 'POST' and 'GET' args.

Personally, I've written a function to emulate register globals=on without
actually compromising the system. It parses the arg and matches it against
the various types. It helps me to maintain my lazy programming approach -
not having to think about where the arg is coming from.

Cheers

George in Oxford

> -----Original Message-----
> From: Michael Adams [mailto:[EMAIL PROTECTED]
> Sent: 24 November 2004 9:45 am
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] What's wrong with these two programs?
>
>
> On Tue, 23 Nov 2004 15:15:49 +1000
> "Michael Purdy" <[EMAIL PROTECTED]> wrote:
>
> > Anthony
> >
> > Assuming you have not omitted any of the code for script 2:
> >
> > You need to have a get the posted value at the start of script 2 i.e.
> >
> > $username = $_REQUEST['userName'];
> >
> > Mike
>
> And assuming both Armando and Mikes answers work which method is
> the more correct?
>
>  --
> Michael Adams
> Trying to learn in dribs and drabs
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to