Re: Re[2]: [PHP-WIN] Problem in passing parameters
| From: | Lung | Date: | Thu, 18 Jul 2002 06:57:30 +0000 |
| Subject: | Re: Re[2]: [PHP-WIN] Problem in passing parameters | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14829@lists.php.net to get a copy of this message | ||
Thanks all of you, I have solved the problems by using $_REQUEST. The
problem comes as I use php 4 with register_global off. So, my old scripts
won't work!
"Asmodean" <asmodean@lka.nu> wrote in message
news:66868656.20020718034907@lka.nu...
> RF> Which variables? I hope you mean $_POST[username] and
$_POST[password] ?
> RF> If not, read the manual about accessing variables. Otherwise, let us
know
>
> RF> Ross
>
> >> -----Original Message-----
> >> From: Lung [mailto:mllo@sinaman.com]
> >> Sent: 12 July 2002 16:26
> >> To: php-windows@lists.php.net
> >> Subject: [PHP-WIN] Problem in passing parameters
> >>
> >>
> >> Hi,
> >>
> >> I have built a form for inputting username & password and
> >> called login.php
> >> to handle. However, I fail to pass the variables to index.php like:
> >>
> >> http://localhost/php/login.php?username=test&password=test. When
> >> I check the
> >> variables in login.php, it said these variables are unset. Please
> >> adivse how
> >> to solve it! I am using IIS & PHP 4.2.1 in Window 2000.
> >> Thanks!
> >>
> >> Lung
> >>
> >>
> >>
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
>
> Passing the arguments like that makes them available in
> $_GET['username'] and $_GET['password'].
>
> --
> Best regards,
> Asmodean mailto:asmodean@lka.nu
>