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();
}
}