professional-ajax-03-Communication-Control-Patterns-Submission-Throttling-ValidateForm.php / php
<?php message = "An unknown error occurred."; if (isset(//load array of usernames usernames = array(); usernames[] = "Ninja123"; usernames[] = "NatPack"; //check usernames if (in_array(usernames)) { _GET["txtUsername"]) < 8) { valid = "true"; _GET["txtBirthday"])) { _GET["txtBirthday"]); if (message = "This is not a valid date."; } else { message = ""; } } else if (isset(a-z0-9-] +(\.[ a-z0-9-] +)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})", message = "This e-mail address is not valid"; } else { message = ""; } } echo "message"; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.