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 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"); 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 Link to comment https://forums.phpfreaks.com/topic/239820-going-to-another-page/#findComment-1231913 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.