how do i make the user go to a new page after the registration form is submitted? here is my code and once they fill out this form i want them to go to a new page if ($result){ echo "go to new page"; } else{ echo "aww man no biggie"; } ?> <form action="new.php" method="post"> <p>First Name: <input type="text" name="firstname" size="15" maxlength="20" value=""/></p> <p>Last Name: <input type="text" name="lastname" size="15" maxlength="20" value=""/></p> <p>Email: <input type="text" name="email" size="15" maxlength="20" value=""/></p> <p>Password: <input type="text" name="pass" size="15" maxlength="20" value=""/></p> <p><input type="submit" name="submit" value="register"/></p> <p><input type="hidden" name="submitted" value="TRUE"/></p> </form> Code (markup):
i tried that that then the page just redirected before it even loaded, you coudlnt even fill out the form and it sent you to the new page
nevermind i just put my entire php code in an if statement so it didnt run as soon as th erpage laoded, and your script worked! thanks man a ton rep added!