DYWBH Posted June 19, 2011 Share Posted June 19, 2011 I want to have an if statement that sends the user to another page..how would I go about doing this? Something like this: if ($numrows = 1){ go to page.php } else Thanks Quote Link to comment https://forums.phpfreaks.com/topic/239820-going-to-another-page/ Share on other sites More sharing options...
DYWBH Posted June 19, 2011 Author Share Posted June 19, 2011 Found it header("Location: http://www.google.com"); Quote Link to comment https://forums.phpfreaks.com/topic/239820-going-to-another-page/#findComment-1231911 Share on other sites More sharing options...
YoungNate_Black_coder Posted June 19, 2011 Share Posted June 19, 2011 header('location: page.php') ; //note headers have to be sent before any html tags Quote Link to comment https://forums.phpfreaks.com/topic/239820-going-to-another-page/#findComment-1231913 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.