use CGI;
my $q = new CGI;
my $formfield1=$q->param('username')
my $formfield2=$q->param('password')
#INITIALIZE HASH OF FORM VARIABLES
my %params = $q->Vars;
open (FILE, "$filename") || die "No such file\n";
my @data=<FILE>;
close (FILE);
foreach my $i (@data)
{chomp($i);
my ($username,$password)=split(/\|/,$i);
if ($formfield=~$username)
{print ....
}
else
{print ....
}
}
>how can i make a script check whether a variable equals an existing system
>username or not? the script does not run as root, it is a webpage.
>--
>Matthew Harrison
>Internet/Network Services Administrator
>Peanut-Butter Cheesecake Hosting Services
>Genstate
>www.peanutbuttercheesecake.co.uk
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
-------------------------------
- Teresa Raymond -
- Mariposa Net -
- http://www.mariposanet.com -
-------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]