His application is like a
password checker used Yahoo! when you do regitrasi. This application is also commonly used by websites to check out other dynamic forces from the user password, the application can know the strength of user passwords with a password length checking, uppercase, lowercase and numbers. The application is built with
Ajax and
PHP technology.
First create a file ajaxforms.js
then create the file [i] get.php
= 65 && $intVal <= 90)
{
if(++$upperCaseCount / $len >= $limit) { return true; } } } return false; } function CheckSPCHAR($usrinput) // periksa special karakter { if(!eregi("^([a-z0-9])*$",$usrinput)) { return true; } else { return false; } } function CheckNum($usrinput) // periksa numeric { if(eregi("[0-9]",$usrinput)) { return true; } else { return false; } } //CheckForUPcase($usrinput); if(CheckNum($usrinput)==true&&CheckForUPcase($usrinput)==true&&CheckSPCHAR($usrinput)==true&&$output>='8') { echo '
Uber Secure! (Best) '; }elseif((CheckForUPcase($usrinput)==true&&CheckSPCHAR($usrinput)==true&&$output>='8')||(CheckNum($usrinput)==true&&CheckSPCHAR($usrinput)==true&&$output>='8')||(CheckNum($usrinput)==true&&CheckForUPcase($usrinput)==true&&$output>='8')||(CheckNum($usrinput)==true&&CheckForUPcase($usrinput)==true&&CheckSPCHAR($usrinput)==true)) { echo '
Secure '; }elseif((CheckNum($usrinput)==true&&CheckForUPcase($usrinput)==true)||(CheckForUPcase($usrinput)==true&&CheckSPCHAR($usrinput)==true)||(CheckSPCHAR($usrinput)==true&&$output>='8')||(CheckNum($usrinput)==true&&$output>='8')||(CheckNum($usrinput)==true&&CheckSPCHAR($usrinput)==true)||(CheckForUPcase($usrinput)==true&&$output>='8')) { echo '
Good '; }elseif((CheckNum($usrinput)==true)||(CheckForUPcase($usrinput)==true)||(CheckSPCHAR($usrinput)==true)||($output>='8')) { echo '
Weak '; }else{ echo '
Pretty Weak '; } ?>
last create index.php file
Ajax PHP
Just Comment. Not Spam!