//Set form variables $article = $_REQUEST['article']; $category = $_REQUEST['category']; $title = $_REQUEST['title']; $author = $_REQUEST['author']; $website = $_REQUEST['website']; //validate variables IF $article == "Copy and paste your article here" || ""; { echo "You must type something into the article box"; exit; }else{ echo "Article content OK"; } IF $category == "Category"; { echo "You must select a category"; exit; }else{ echo "Category OK"; } IF $title == "Your article's title" || ""; { echo "You must enter a title for your article"; exit; }else{ echo "Article title OK"; } IF $author == "Your name here"; || ""; { echo "You must enter your name"; exit; }else{ echo "Name OK"; } IF $website == "Your website here" || ""; { echo "You must enter your website address"; exit; }else{ echo "Website OK"; } ?>