On Fri, 5 Jul 2002 23:25:58 -0400, [EMAIL PROTECTED] wrote: >Hi > >I'm trying to write a new script that will automatic show a pop up window >with a random username and password for my members section. > >The way it needs to work is that after a user pays for membership they >will >be redirected to the the script, the script will then generate a random >username and password in a pop up text box and place it in a database >file >and an .htaccess and .htpasswd file. with an expiration date. > >Can someone how tell me how to begin and what the format looks like for >the >random generation?
You are asking for us to tell you how to write a big complex script. It won't happen. You can ask questions about code you already have, but this isn't a free coding service. You should start looking at pre-existing scripts that do what you want, search for them. Next go look at the modules available on http://cpan.org for what you want to do. Apache::Htpassword is one that will help you with the password writing. Business::OnlinePayment will make taking credit cards easier. Here is a simple script to make random passwords: ######################################################## #!/usr/bin/perl use warnings; @Random = (A..Z, a..z, 0..9, 0..9); do { $password = "$password$Random[rand(@Random)]"; } until (length ($password) == 8); print "$password\n"; ########################################################## -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]