RE: [PHP-WIN] New to PHP
| From: | Mikey | Date: | Mon, 06 Jan 2003 21:03:50 +0000 |
| Subject: | RE: [PHP-WIN] New to PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17681@lists.php.net to get a copy of this message | ||
Have you set register_globals=On in your php.ini file? This is disabled by
default as it poses a security risk... in your case it would be better to
access your variable as $_GET['Action']
HTH,
Mikey
> -----Original Message-----
> From: Palli [mailto:pallagust@hotmail.com]
> Sent: 06 January 2003 20:53
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] New to PHP
>
>
> Hello
>
> Im new to PHP and I have a little problem.
> It seems that I always get a blank value from a query string.
>
> This is my code
>
> <a href="login.php?Action=Login">BLA </a>
>
> and this is login.php
>
> <tr>
> <td width="100%" colspan="2">
> <!--Main page-->
> <?php
> if (empty($Action))
> {
> include("MainPage.php");
> }
> else
> {
> if($Action == 'Login')
> {
> include("loginpage.php");
> }
> else
> {
> include("MainPage.php");
> }
> }
> ?>
> </td>
> </tr>
>
>
> but the $Action is always empty.
>
> ps. I´ve tried to change the variable name but no succes.
>
> thanx
> Palli
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>