tet3828 Posted November 8, 2006 Share Posted November 8, 2006 [code]if (******* == "".$_POST['userName']."" & ******* == "".$_POST['userPass']."") { echo "Username and password have been validated, thank you..."; echo "Entering Database";[/code]after this simple validation script, what would be the best way to forward my user to the next page? (modify.php) without the user having to click a button or link.no variables need to passed in this situation. Link to comment https://forums.phpfreaks.com/topic/26608-auto-forward-after-validation/ Share on other sites More sharing options...
littlejones Posted November 8, 2006 Share Posted November 8, 2006 tryheader("location:modify.php");Make sure it comes before any other headers are sent (so before your html tags - might aswell stick all the code at the top of the page). Link to comment https://forums.phpfreaks.com/topic/26608-auto-forward-after-validation/#findComment-121706 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.