mga_ka_php Posted February 28, 2007 Share Posted February 28, 2007 how do i go to another page? sample. if the argument is correct in page1.php3 then it will automatically go to page2.php3 thanks. Quote Link to comment https://forums.phpfreaks.com/topic/40461-forward-to-another-page/ Share on other sites More sharing options...
spfoonnewb Posted February 28, 2007 Share Posted February 28, 2007 ? <?php $argument = "HasToBeThis"; if ($argument != "HasToBeThis") { echo "Invalid Argument"; } else { header("Location: nextpage.php"); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/40461-forward-to-another-page/#findComment-195797 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.