om: "Ben Huyghebaert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 3:51 PM
Subject: Having problems with login
>I'm starting to make a perl/cgi/html based multi-player game called 3MF
(Massive Multiplayer Medieval Frolic). So far I'v
-Original Message-
From: Ben Huyghebaert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:43 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Having problems with login
It worked! I had to correct some syntax problems I had but after that I got
it rolli
It worked! I had to correct some syntax problems I had but after that I got it
rolling. Thank you very much! I'll try suggestions next time before I just assume
that they won't work.
I'm still confused by it but I'll study it maybe understand why it works. LOL
On Wed, 12 June 2002, David vd
rt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 8:51 AM
To: [EMAIL PROTECTED]
Subject: Having problems with login
I'm starting to make a perl/cgi/html based multi-player game called 3MF
(Massive Multiplayer Medieval Frolic). So far I've made an account creation
screen tha
Ben --
...and then Ben Huyghebaert said...
%
% Thanks but I don't think that will work because as someone pointed out my foreach
loop leaves me with only the last elements of @access.
Well, it did that as you wrote it; you looped through the whole file and
*then* started any comparing.
I wa
on Wed, 12 Jun 2002 12:51:29 GMT, [EMAIL PROTECTED] (Ben
Huyghebaert) wrote:
>Here is the code I'm using right now. I open up the file with
>the usernames and passwords and throw it all into @access and
>then do this
If you put your username/password pairs in a hash instead of an
Thanks but I don't think that will work because as someone pointed out my foreach loop
leaves me with only the last elements of @access.
I need it to give me all the elements in two @s I'll see if I can figure it out maybe
someone know the best way?
On Wed, 12 June 2002, David vd Geer Inhuur
I think this will work :
foreach $i(@access) {
chomp $i;
($un,$pw) = split(/\|/, $i);
$username = $FORM{'username'};
$password = $FORM{'password'};
if (($username ne $un) || ($password ne $pw)) {
print
> foreach $i (@access) {
> chomp($i);
> ($un,$pw) =
> split(/\|/,$i);
> }
at the end of this loop, $un and $pw contain the last element of
@access.
__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.co
I'm starting to make a perl/cgi/html based multi-player game called 3MF (Massive
Multiplayer Medieval Frolic). So far I've made an account creation screen that writes
the data to two flat file db's one of them holds the usernames & passwords, while the
other holds all the user information.
10 matches
Mail list logo