tcorbeil Posted March 26, 2007 Share Posted March 26, 2007 What is the easiest way to us the include command to go to anexternal script. The script does some stuff but here is what need: When i have completed the external script, I am currently using this: @header("Location: ".$_SERVER['HTTP_REFERER']); to get back to the page that called the external script.. can i use this command somehow to pass variables from the external script to the main script? If not, is there another command that i can use return to the main script while passing variables? thanks. T. Quote Link to comment Share on other sites More sharing options...
interpim Posted March 26, 2007 Share Posted March 26, 2007 maybe pass something through the $_GET array? $refer = $_SERVER['HTTP_REFERER']; $url = $refer . '?var=' .$var; header("Location: $url"); might have to check my syntax though. 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.