kds2 Posted October 9, 2008 Share Posted October 9, 2008 Ok Im trying to have my script load up a page when called, but I am having a problem with my code, I keep getting an error. What is wrong with this line of code? (minus the space after id=, yahoo didnt like the code) echo '<meta http-equiv="refresh" content="0; URL=http://www.mysite.com/mypage.php?id= %s">', $id; Quote Link to comment https://forums.phpfreaks.com/topic/127639-page-load-prolem/ Share on other sites More sharing options...
iversonm Posted October 9, 2008 Share Posted October 9, 2008 well i would use javascript echo '<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"> <!--window.location.href = http://www.mysite.com/mypage.php?id='.$id.'";//--></SCRIPT>'; that will work if you have javascript Quote Link to comment https://forums.phpfreaks.com/topic/127639-page-load-prolem/#findComment-660509 Share on other sites More sharing options...
Maq Posted October 9, 2008 Share Posted October 9, 2008 Ok Im trying to have my script load up a page when called Are you referring to a pop up page or a page that loads, executes then redirects back to the original? Quote Link to comment https://forums.phpfreaks.com/topic/127639-page-load-prolem/#findComment-660664 Share on other sites More sharing options...
JasonLewis Posted October 9, 2008 Share Posted October 9, 2008 That'll redirect you to a page "?id=%s". Do you mean like this: echo sprintf('<meta http-equiv="refresh" content="0; URL=http://www.mysite.com/mypage.php?id=%s">', $id); Quote Link to comment https://forums.phpfreaks.com/topic/127639-page-load-prolem/#findComment-660698 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.