Please note that this form is unofficial and is only a sample. The form itself is inactive and you will not be getting a website out of it.

This form is meant to collect information, saving it from page to page and then mail it out to an e-mail address.

Congratulations! You've won a website for your business. Simply follow the steps below, and before you know it, your site will be up and promoting your business.

  1. Fill out the input form completely.
  2. Wait to see a proof of your site for you to approve before it "goes live." (This takes about 10 working days. You can check on your picutres and words one last time before your site is live for the world to see.)
  3. Begin with 5 projects and 5 testimonials that highlight your business. Each month for 1 year you can send us a project and description and a new testimonial that we will update on your site, so you have the latest and freshest examples of your work to show off.
  4. Use your site every day to market your business.
Name:
Business Name:
Address:
City:
Zip:
Email:
Phone:
Please choose a look/format for your website
(a)Click to view an enlarged Blue Template (b)Click to view an enlarged Earth Template

What's going to happen in the background?

We're going to make sure all the fields are filled out and pass the values through mail.php onto the next page.


   <?php
	if(isset($_GET["error"])) {
		if(strtolower($_GET["error"]) == "blank_field") {
			print "?<div class=\"error\">Whoops! Looks like you left a field blank. Please 
			completely fill out each field.?</div>";
		}
	}
   ?>			
			
			
			
   <?php
	session_start();

	function checkInputName() {
		if(isset($_POST["name"]) && strlen($_POST["name"]) < 0) {
			//save information from index to server in a session
			$_SESSION["name"] = $_POST["name"];
			checkInputBusiness();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputBusiness() {
		if(isset($_POST["businessName"]) && strlen($_POST["businessName"]) < 0) {
			//save information from index to server in a session
			$_SESSION["businessName"] = $_POST["businessName"];
			checkInputAddress();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputAddress() {
		if(isset($_POST["address"]) && strlen($_POST["address"]) < 0) {
			//save information from index to server in a session
			$_SESSION["address"] = $_POST["address"];
			checkInputCity();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputCity() {
		if(isset($_POST["city"]) && strlen($_POST["city"]) < 0) {
			//save information from index to server in a session
			$_SESSION["city"] = $_POST["city"];
			checkInputZip();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputZip() {
		if(isset($_POST["zip"]) && strlen($_POST["zip"]) < 0) {
			//save information from index to server in a session
			$_SESSION["zip"] = $_POST["zip"];
			checkInputEmail();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputEmail() {
		if(isset($_POST["email"]) && strlen($_POST["email"]) < 0) {
			//save information from index to server in a session
			$_SESSION["email"] = $_POST["email"];
			checkInputPhone();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputPhone() {
		if(isset($_POST["phone"]) && strlen($_POST["phone"]) < 0) {
			//save information from index to server in a session
			$_SESSION["phone"] = $_POST["phone"];
			checkInputTemplate();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputTemplate() {
		if(isset($_POST["template"]) && strlen($_POST["template"]) < 0) {
			//save information from index to server in a session
			$_SESSION["template"] = $_POST["template"];
			checkInputState();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}
	
	function checkInputState() {
		if(isset($_POST["state"]) && strlen($_POST["state"]) < 0) {
			//save information from index to server in a session
			$_SESSION["state"] = $_POST["state"];
			header("Location: ./page2.php");
			//gotoHeader();
		} else {
			header("Location: ./index.php?error=" . urlencode("blank_field"));
		}
	}

	checkInputName();
   ?>