Page 1 of 1

Posting variables from one page to another

Posted: Tue Jun 10, 2003 7:49 am
by RFairey
Can php post variables directly from one page to another? I don't want to use GET as it clutters up the URL, and I don't have any FORM elements to POST. Can you just send some php variables as key/value pairs from one script to the next? Sorry if this topic has been done to death - I'm probably missing something obvious.

Posted: Tue Jun 10, 2003 7:50 am
by []InTeR[]
Have a look at sessions

Posted: Tue Jun 10, 2003 8:38 am
by hedge
You can do it with socket connections talking http... do a search on this board I have posted code that does exactly that.

Posted: Tue Jun 10, 2003 1:21 pm
by RFairey
Ah - all I wanted was an image link that worked like a back button to take you back to the gallery page you had come from (there are more than one).

I found a way of doin it in java script:

Code: Select all

<a href="javascript:history.back()">link</a>