send randomly generated paswd in email for lavalair
Started on the old forum in January 2012 · view the original in the archive · old links redirect here
Easier is to compare those two vars while registering and if are the same throw a notice.
if (strcmp($register_name, $password) == 0) {
echo 'The passwords can not be same as username!';
}
Forcing users to remember some random pass just isn't good. Anyway, there is many ways to generate random things, one is:
$password = substr(uniqid(rand(), true), 0, 5); // for 5 digits
arnage wrote: Easier is to compare those two vars while registering and if are the same throw a notice.
if (strcmp($register_name, $password) == 0) { echo 'The passwords can not be same as username!'; }Forcing users to remember some random pass just isn't good. Anyway, there is many ways to generate random things, one is:
$password = substr(uniqid(rand(), true), 0, 5); // for 5 digits
okay where shud i place this random generated paswd code in my register.php , should i remove this line here in register.php $pwd = $_POST["pwd"]; bcoz i hve to remove password field in registration form
owh... good idea.. he means that in register field no need to to put password.. password will given in email.. but it make trouble for some users... that mean users must change the random password by tool to make own password...
monirnsp wrote: I am a newibe.plz tell me how can i send pass and validation code or link via mobile phone number....pls help me.
just use sms api..
our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com
$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);