function form(){
//Add your form here!
}
if($submit){
if(check_form()){
//if you want to display the form
//form();
echo $form_name,$form_user;
}
else{
//if you want to display the form
//form();
print_error();
}
}
//Add your form here!
}
if($submit){
if(check_form()){
//if you want to display the form
//form();
echo $form_name,$form_user;
}
else{
//if you want to display the form
//form();
print_error();
}
}
...
</form>
else {
form();
}
{
// add you code here;
}?><form action="<?echo $PHP_SELF?>">......
<input type="hidden" name="act" value="add>">
</form>