RE: [PHP-WIN] What's wrong with these two programs?
| From: | George Pitcher | Date: | Wed, 24 Nov 2004 09:44:03 +0000 |
| Subject: | RE: [PHP-WIN] What's wrong with these two programs? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25038@lists.php.net to get a copy of this message | ||
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:linux_mike@paradise.net.nz]
> Sent: 24 November 2004 9:45 am
> To: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What's wrong with these two programs?
>
>
> On Tue, 23 Nov 2004 15:15:49 +1000
> "Michael Purdy" <michael.purdy@optusnet.com.au> 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
>
>