<?php // checkuser.php include_once 'functions.php'; if (isset($_POST['email'])) $firstname = sanitizeString($_POST['firstname']); if(!$_POST['firstname'] || strlen($_POST['firstname'])<3 || strlen($_POST['firstname'])>50) { echo "<font color='red'> over 3 letters</font>"; } else { echo "<img src='img/goodemail.jpg' Width='27' height='27'>"; } ?>