CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Automatic username and password generation

Print topic Send  topic

Author Message
rkiss

Posts: 14
Posted: 07/20/2004, 9:45 AM

Hi,

I was wondering if someone has developed a php code that automatically generates username and password for users during registration.

Any kind of help would be appreciated

Thank You

Roman
View profile  Send private message
Roman
Posted: 07/22/2004, 1:57 PM

Hi,

Does anyone have some tips for me for this task?

Thank You

Roman
carolcastro


Posts: 24
Posted: 07/23/2004, 12:58 PM

I have a function that generates a password, you could adapt to generate usernames.

Here it is:
function GeraSenha()
{
$caracteres= '0123456789'; // default 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
$numch=4; //default = 8
$senha='';
for($i=0;$i<$numch;$i++) {
$senha.=$caracteres[rand(0,strlen($caracteres)-1)];
}
return $senha;
}
_________________
Carol Castro
View profile  Send private message
Roman
Posted: 07/26/2004, 7:37 AM

Carol,

Thank you for your reply

Regards

Roman

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.