ok this is simple. we can approach this multiple ways. one way you can do is by using the header function which works as a redirecter, but this will not pass any variables back to the original page. so you can add a ?varname=var&varname2=var2 at the end of the url. another way you can do this is by using cookies or sessions but lets just keep it simple.
example:
//code code code
header("Location: originalpage.php?varname=var&varname2=var2");
hope this helps you out.