Many sites send you a temporary password after u sign up with them. Here is is how you too can do that
Example:
Result:
PHP Code:
function TempPassword($tp_len)
{
$pstring = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWXxYyZz0123456789";
$plen = strlen($pstring);
for ($i = 1; $i <= $tp_len; $i++)
{
$start = rand(0,$plen);
$temp_password.= substr($pstring, $start, 1);
}
return $temp_password;
}
Example:
PHP Code:
$tp=TempPassword("9");
Code:
$tp= Ab72Pz3Rs
