On Tue, Jun 08, 2010 at 09:25:03PM +0100, James Bensley wrote:
On 8 June 2010 21:17, Chris G cl@isbd.net wrote:
Am I reduced to the nasty (but perfectly possible) expedient of page A writing something to a file somewhere and page B reading it?
Probably equally as nasty but another method would be to have a link on page a that is
<a href="PageB.php?val1=hello&val2=world">PageB</a>
And then on page B get the values with:
<?php echo $_GET['val1'] . " " . $_GET['val2']; ?>
...Just a thought!
I was reading about this method when searching for "alternatives to cookies", it might well be a better way for my particular requirement. It may well be that adding that 'parameter' to the link will avoid having to write any PHP on the 'calling' page.
Thanks for the idea.