RE: [PHP-WIN] New to PHP
| From: | Asendorf, John | Date: | Mon, 06 Jan 2003 21:05:48 +0000 |
| Subject: | RE: [PHP-WIN] New to PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17682@lists.php.net to get a copy of this message | ||
Your register_globals is probably turned off, and since you probably don't
have the ability to alter the ini file, try putting this at the top of your
code:
$Action = $_REQUEST['Action'];
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Palli [mailto:pallagust@hotmail.com]
> Sent: Monday, January 06, 2003 3:53 PM
> 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
>