Jump to content

Transferring Variables Between Pages...


renno

Recommended Posts

Use $_POST if you feel that you don't want your information to show up on your URL.  Use $_GET if you want all the variables to show up on your URL.  Think of it as do you want someone to book mark the page?  So far, I haven't found solutions using PHP only to POST without input type submit, but you can always use javascript to submit without input type submit if it's a form. 

You can always create your own <a href="http://us3.php.net/manual/en/ref.session.php">SESSION</a> variables and store it in memory so no matter which page you go, there exist variables you want to use until session expires.  This way, you don't have to show anything in URL and not rely on people to click submit button.

Happy Friday  ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.