Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mode=$_POST["submit"];
- switch($mode)
- {
- case "submit":
- $error="";
- $error=validationform($_POST);
- if(empty($error))
- { $tablename = "contactus";
- insertform($tablename, $_POST);
- thanku();
- }
- else {
- displayform($_POST, $error);
- }
- break;
- default:
- displayform($post, "");
- break;
- }
- include("template/footer.php");
- function displayform($post, $error="")
Add Comment
Please, Sign In to add comment