Bangla Radio

Share

Bookmark and Share

Saturday, May 8, 2010

Strong or Secure Password Using PHP Code








User Registration

UserName:

Password:






$username=$_REQUEST['username'];
$password=$_REQUEST['userPassword'];
//$retype=$_REQUEST['retypePassword'];

if($_REQUEST['submit']=="login")
{
if($password)
{
if(preg_match("/^.*(?=.{8,})(?=.*[a-z]+)(?=.*[^A-Za-z0-9])(?=.*[0-9\.\-\@\#\$\&]).*$/",$password))

{
echo "
Successfuly checked your password
";

}
else
{
echo "
Please Enter"."
"."Atleast 8 character"."
"."Alpha numeric value"."
"."1 Special character
";
}
}

else
{
echo "
Password field can not be empty
";
}
}

?>




0 comments:

Post a Comment

Submit your Web Site to Search Engine

Google PR Check

Check Page Rank of your Web site pages instantly:

This page rank checking tool is powered by Page Rank Checker service

Keyword Based Search Engine Checker

Your domain:
(eg. iwebtool.com)
 
Search on:  
Limit search to:
Keywords to search:
 
 

Powered by iWEBTOOL

Backlink Checker Tools

Your domain:
  (eg. iwebtool.com)
 

Powered by iWEBTOOL

Search Engine Spider Simulator

Enter URL to Spider

Google Penalty Checker

Google Penalty Checker



Powered by Li'l Engine's Google Penalty Checker