// RETURN [0] (TRUE | FALSE)
// RETURN [1] (NULL | STRING ERROR MESSAGE)
$validate = validEX($_POST['username'], 'len[6,16]|alphanum|nospace');
// IF [0] IS NOT TRUE, EXIT THE SCRIPT AND RETURNS [1] STRING ERROR MESSAGE
if (!$validate[0]) die($validate[1]);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"specie": "Bulbasaur" | |
}, | |
{ | |
"specie": "Ivysaur" | |
}, | |
{ | |
"specie": "Venusaur" | |
}, |
→ Public CDN
→ Demo
Just link the script to your website, right after the jQuery
Le Amateur jQuery Form Validator Plugin (Demo)
Just link the script to your website, right after the jQuery
<script src="jquery.min.js"></script>
<script src="validator.min.js"></script>