Re: [PHP] Auto password generation

2002-03-26 Thread John Fishworld
something like this function randString($length=16){ mt_srand((double)microtime()*100); $newstring=""; if($length>0){ while(strlen($newstring)<$length){ switch(mt_rand(1,3)){ case 1: $newstring.=chr(mt_rand(48,57)); break; // 0-9 case 2: $newstring.=chr(mt_rand(65,90)); brea

[PHP] Re:[PHP] Auto password generation

2002-03-26 Thread Liam
26/03/2002 9:51:20 PM Random Password : "Denis L. Menezes" <[EMAIL PROTECTED]> wrote on 26/03/2002 11:38:14 AM: > >Hello friends, > >I have a form for registering by the users. This runs on php/mysql. > >Can someone tell me how I could include auto password generation and >emailing of t