/ Published in: PHP
                    
                                        
Simple PHP functions to validate username, password and date, functions check the input format and allowed characters and then return TRUE for valid data and FALSE for invalid data.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
function is_valid_username($username){
// accepted username length between 5 and 20
return true;
else
return false;
}
function is_valid_password($pwd){
// accepted password length between 5 and 20, start with character.
return true;
else
return false;
}
function is_valid_date($date){
//============ date format dd-mm-yyyy
return true;
}
?>
URL: http://function-code.blogspot.com/2013/10/username-password-and-date-validation.html
Comments
 Subscribe to comments
                    Subscribe to comments
                
                