Re: vars from page to page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The default config for new version of php is with register_globals set to off.
This is because of security reason.
You have your variable in $HTTP_GET_VARS['action'] or in $_GET['action']
(depends on php ver you use). Consult manual at
http://www.php.net/manual/en/security.registerglobals.php

HTH
Piotr

Aidal wrote:

> Hi NG.
>
> I have a little problem with a new install of php/apache/win2k which has to
> do with the setup I think.
>
> I have made a webpage on a local machine php/apache/win98 which runs
> perfectly.
> But when I transfer it to the new installation it seems that vars doesn't
> travel between pages.
>
> As an example, this should work but doesn't:
>
> page code example:
> ==============
> echo "click this <a href='$PHPSELF?action=say&msg=Hello_php_noob'>link</a>";
> if (isset($action)) {
>     echo "<br>". $msg ." so you did click the link huh ;o)";
> }
> ==============
>
> page output before click:
> ------------
> clik this link
>
> page output after click:
> --------------------
> click this link
> Hello_php_noob so you did click the link huh ;o)
>
> This is what should have happened...
> But $action isn't set and nor is $msg, what can be wrong with the setup?
>
> Any help appreciated....
>
> /Aidal
>
> --
> 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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux