hey friends any one using lavalair in which users get randomly generated paswd in email , i dnt want users to choose their own paswd while registering bcoz many end up using username as paswd . Any lavalair coders reply pls
send randomly generated paswd in email for lavalair
Collapse
X
-
Easier is to compare those two vars while registering and if are the same throw a notice.
PHP Code:if (strcmp($register_name, $password) == 0) {
echo 'The passwords can not be same as username!';
}
PHP Code:$password = substr(uniqid(rand(), true), 0, 5); // for 5 digits
<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
-
Originally posted by arnage View PostEasier is to compare those two vars while registering and if are the same throw a notice.
PHP Code:if (strcmp($register_name, $password) == 0) {
echo 'The passwords can not be same as username!';
}
PHP Code:$password = substr(uniqid(rand(), true), 0, 5); // for 5 digits
$pwd = $_POST["pwd"];
bcoz i hve to remove password field in registration form
Comment
-
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...
Originally posted by monirnsp View PostI am a newibe.plz tell me how can i send pass and validation code or link via mobile phone number....pls help me.our lfe is simple words....
http://mygenkz.net
ewanz06@yahoo.com
PHP Code:$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
Comment
Comment