PDA

View Full Version : URLENCODE() Help please



1000years0fpain
06 Dec 2005, 10:30 AM
Hi guys

how do u exactly use urlencode() to pass one variable from a php file to another php file? I am having trouble with this please help

Thank you

1000years0fpain

bs0d
06 Dec 2005, 07:00 PM
To pass a variable you can use $_GET which will get the variable passed in the url, like this:

site.com/index.php?variable_here=whats+up

so $_GET['variable_here'] = whats up

or, you can store the variable in a session. Just do something like:


<?
session_start( );
$_SESSION['test'] = "whats up";
session_write_close();
?>