Code: Select all
<form name="reg" method="post" action="form.php">this is what I have if the vallidatation passes:
Code: Select all
// display error message if any, if not, proceed to other processing
if($error_msg==''){
// other process here
} else {
echo "<p class=\"important\">$error_msg</p>";
}I did try:
Code: Select all
// display error message if any, if not, proceed to other processing
if($error_msg==''){
// other process here
$vallpass = 'yes'; // if form passes vallidation
} else {
echo "<p class=\"important\">$error_msg</p>";
}
if ( "$vallpass" == 'yes'){
$action = 'confirm.php'
} else {
$action = 'form.php'
}Code: Select all
<form name="reg" method="post" action="<?php echo "$action";?>">