for my login form i have a link to click on if you forgot password. How do i create a random string to insert into the pass field to let them log back in and change password?
You can use many tricks to create random string, like $randomPass = date("YmdHis") . rand(1, 9999999); hope this helps.
i use this: $len = 10; //random pass length $password = ''; for ($i=1; $i<=$len; $i++){ $set = array(rand (65,90),rand(97,122)); $password .= chr($set[rand(0,1)]); } echo $password; //result will be like "sgvUkvSUTg"