Passing vars in a url
Posted by: garthmaul (69.150.79.---)
Date: April 17, 2007 05:21AM

In WAMP5, is am having trouble passing info in a url, such as
return_user.php?action=returnUser&amp;userid=<?php print $userid; ?>

The second page doesn't remember the value of userid or the value that was passed in $userid.
On my web site, these variables are passed with ease from page to page in the url.
Is there a setting that needs to be enabled in WAMP 5?

Options: ReplyQuote
Re: Passing vars in a url
Posted by: CyberSpatium (71.237.217.---)
Date: April 17, 2007 07:33PM

the php community disabled register globals enabled by default starting in php 4.2.x for security concerns. you now have to use:

$_GET['action']


[www.php.net]



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

Please visit my latest website Clarify Loans:
clarifyloans.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.