seany123 Posted January 29, 2009 Share Posted January 29, 2009 okay well basically is it possible to redirect someone then on the new page display a echo or run a query or something? edit: obviously, on the the new normally the echo or query wouldnt happen... but because of the redirect it does. Quote Link to comment Share on other sites More sharing options...
flyhoney Posted January 29, 2009 Share Posted January 29, 2009 I believe you are looking for the functionality provided by Sessions. Google 'php sessions'. You should find lots of good information. Quote Link to comment Share on other sites More sharing options...
milesap Posted January 29, 2009 Share Posted January 29, 2009 Yes, a redirect works the same way as typing the link into your browser manually. You can pass variables via $_GET if needed. Quote Link to comment Share on other sites More sharing options...
seany123 Posted January 29, 2009 Author Share Posted January 29, 2009 Yes, a redirect works the same way as typing the link into your browser manually. You can pass variables via $_GET if needed. how could it be done with $_GET ?? Quote Link to comment Share on other sites More sharing options...
milesap Posted January 29, 2009 Share Posted January 29, 2009 $link = urlencode('http://www.example.com/index.php?username=joesmith&age=21'); header('Location: ' . $link . ''); Quote Link to comment Share on other sites More sharing options...
seany123 Posted January 30, 2009 Author Share Posted January 30, 2009 $link = urlencode('http://www.example.com/index.php?username=joesmith&age=21'); header('Location: ' . $link . ''); thats not exactly what i mean... i mean after the direct to another page... i want the new page to have a echo or something triggered by the redirect. Quote Link to comment Share on other sites More sharing options...
gevans Posted January 30, 2009 Share Posted January 30, 2009 I'd go down the session root, Using $_GET will leave it open to tampering; Take a look at session_start() as a starting point Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.