bobleny Posted February 20, 2007 Share Posted February 20, 2007 Don't mean to pest, but is there a php code that I can use to change the page? I've been using this: function sendem($reurl, $retime) { echo "<META HTTP-EQUIV='Refresh' CONTENT= '" . $retime . "; URL=index.php?page=" . $reurl . "'>"; } Even though $retime is normally set to .1, this is a bit slow, because it doesn't take affect until after the page has loaded. I want something that will take place as soon as php reads it.... What can I use? Thanks! Quote Link to comment Share on other sites More sharing options...
s0c0 Posted February 20, 2007 Share Posted February 20, 2007 There is a header function that acts as a redirect. Try this: header("location:http://website.com"); If the syntax is wrong just google that function. Quote Link to comment Share on other sites More sharing options...
bobleny Posted February 20, 2007 Author Share Posted February 20, 2007 Thanks! I feel stupid now. I think my friend uses that.... ... Quote Link to comment Share on other sites More sharing options...
s0c0 Posted February 20, 2007 Share Posted February 20, 2007 No thank you, that's the first time I've been able to help some on here. Now I don't feel like such a mooch. 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.