Hi,
I have a page called index.html. This where the user logins with their username and password. On my script login.cgi, it will check to see if the user exist or not. Here's half of my code:
#info from the html code #
if (-e "$basedir/$FORM{'email'}) {
&log2;
}else{
#no user
}
sub log 2 {
open(F, "$basedir/$FORM{'email'}/stats.txt"
;
@stats = <F>;
close(F);
foreach $stats (@stats)
{
chomp($stats);
($username,$gold, $points, $level, $status, $gender, $email, $pass, $version)=split(/\|/,$stats);
}
if ($FORM{'pass'} eq $pass) {
#and so on.... (you got the idea)
}
}
The first login page works perfectly fine and when the user click on the link and goes to another page, all the info is gone. All the url's are like this: login.cgi?email=$email&pass=$pass. If they goes something like login.cgi?email=$email&pass=$pass&STORE, all the stats are gone. I don't know how to pass this info from that HTML page (index.html) to other pages. Anyone have a clue what i'm talking about? Thanks again for your time.
-Aaron
I have a page called index.html. This where the user logins with their username and password. On my script login.cgi, it will check to see if the user exist or not. Here's half of my code:
#info from the html code #
if (-e "$basedir/$FORM{'email'}) {
&log2;
}else{
#no user
}
sub log 2 {
open(F, "$basedir/$FORM{'email'}/stats.txt"
@stats = <F>;
close(F);
foreach $stats (@stats)
{
chomp($stats);
($username,$gold, $points, $level, $status, $gender, $email, $pass, $version)=split(/\|/,$stats);
}
if ($FORM{'pass'} eq $pass) {
#and so on.... (you got the idea)
}
}
The first login page works perfectly fine and when the user click on the link and goes to another page, all the info is gone. All the url's are like this: login.cgi?email=$email&pass=$pass. If they goes something like login.cgi?email=$email&pass=$pass&STORE, all the stats are gone. I don't know how to pass this info from that HTML page (index.html) to other pages. Anyone have a clue what i'm talking about? Thanks again for your time.
-Aaron