Forum Moderators: coopster
<form action="nextpage.php" method="POST"> it just goes to the nextpage.php before it even validates it. is there a way to validate the fields before going to the next page?
e.g
[code]
if(isset($_POST['submit'])){
//validate form
if($valid == true){
header("Location: nextpage.php");
}else{
echo "<p>Learn how to use my form!</p>";
}
}