PDA


View Full Version : Passing Varibles From Page To Page


CharlieHorser
08-27-2005, 11:36 AM
Is there anyway to pass variables from page to page?

I have experimented with using

http://www.removed.com/cmps_index.php?page=my_test&var1=TEST&var2=Test&

I had no luck using it that way... is there something special I need to do to get this to work, or is there a different way I have to pass variables like in cookies or sessions...

Thanks in advanced,
CharlieHorser

Brian
08-27-2005, 03:19 PM
Use $_REQUEST['variable'] in your templates, or add the variable (without the $ mark) to your 'Portal Output Global variabels option and then you should be able to use them in your pages. Just be careful how you're using them though as not sanitizing the variable first could allow some malicious code to be used if the variable is going to be printed out one a page.