ACJavascript has asked for the wisdom of the Perl Monks concerning the following question:
$found=0; open(db,"$MembersDB/MemberDB.db") || print "Can't open you database. +Sorry!\n"; @Info=<db>; close(db); foreach $piece (@Info){ ($user,$password,$Plan,$Type,$status) = split(/\|/,$piece); if($FORM{'username'} eq $user && $FORM{'pass'} eq $password){ $found=1; $u=$user; $p=$password; $pl=$Plan; $T=$Type; $ss="$status"; } if("$ss" eq "yes"){ $sss="yessssss"; }else{ $sss="nooooo"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with and If Else structure.
by djantzen (Priest) on Jan 01, 2003 at 02:41 UTC | |
by ACJavascript (Acolyte) on Jan 01, 2003 at 03:21 UTC | |
|
Re: Need help with and If Else structure.
by gjb (Vicar) on Jan 01, 2003 at 02:41 UTC | |
by ACJavascript (Acolyte) on Jan 01, 2003 at 03:26 UTC |