Jump to content

Archived

This topic is now archived and is closed to further replies.

NME

Jump to Page?

Recommended Posts

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'.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.