Jump to content


Photo

Jump to Page?


  • Please log in to reply
2 replies to this topic

#1 NME

NME
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 29 May 2006 - 12:43 AM

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


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 29 May 2006 - 01:11 AM

Assuming your 'few MySQL' script doesn't output anything to the browser, you can use the header() function:

header("Location: blah.php?blah=$blahid");

Legend has it that reading the manual never killed anyone.
My site

#3 NME

NME
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 29 May 2006 - 01:17 AM

Thanks a ton man. Your awesome




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users