NME Posted May 29, 2006 Share Posted May 29, 2006 Hey guys, I was just wondering if there was any command to jump to a different page without clicking a hyperlink.An example is suppose the user clicks a link that leads to a file where there are a few mysql commands, and then i want to go back to the initial page immediately after those commands are completed. I already know about include, but for some reason its not working when i do something like... include 'www.blah.com/blah.php?blah=$blahid'. Quote Link to comment https://forums.phpfreaks.com/topic/10671-jump-to-page/ Share on other sites More sharing options...
AndyB Posted May 29, 2006 Share Posted May 29, 2006 Assuming your 'few MySQL' script doesn't output anything to the browser, you can use the header() function:[code]header("Location: blah.php?blah=$blahid");[/code] Quote Link to comment https://forums.phpfreaks.com/topic/10671-jump-to-page/#findComment-39831 Share on other sites More sharing options...
NME Posted May 29, 2006 Author Share Posted May 29, 2006 Thanks a ton man. Your awesome Quote Link to comment https://forums.phpfreaks.com/topic/10671-jump-to-page/#findComment-39834 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.