Yes this is properbly the right way to do it when register_globals is Off, which it should be for severel reasons I guess. Thanks "Ignatius Reilly" <ignatius.reilly@free.fr> wrote in message 013701c3a3a8$e3293e30$0100a8c0@server">news:013701c3a3a8$e3293e30$0100a8c0@server... > Try $_REQUEST['msg'] instead of $msg > > This is the proper way to access form data. > _________________________ > ----- Original Message ----- > From: "Aidal" <aidal@nospam.dk> > To: <php-windows@lists.php.net> > Sent: Wednesday, November 05, 2003 3:17 PM > Subject: vars from page to page > > > > 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