vars from page to page
| From: | Aidal | Date: | Wed, 05 Nov 2003 14:17:17 +0000 |
| Subject: | vars from page to page | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21999@lists.php.net to get a copy of this message | ||
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