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. Link to comment https://forums.phpfreaks.com/topic/142990-queries-after-redirection/ 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. Link to comment https://forums.phpfreaks.com/topic/142990-queries-after-redirection/#findComment-749782 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. Link to comment https://forums.phpfreaks.com/topic/142990-queries-after-redirection/#findComment-749784 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 ?? Link to comment https://forums.phpfreaks.com/topic/142990-queries-after-redirection/#findComment-749786 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 . ''); Link to comment https://forums.phpfreaks.com/topic/142990-queries-after-redirection/#findComment-749795 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. Link to comment https://forums.phpfreaks.com/topic/142990-queries-after-redirection/#findComment-750223 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 Link to comment https://forums.phpfreaks.com/topic/142990-queries-after-redirection/#findComment-750227 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.