if ((!($username eq 'sugar')) && (!($password eq 'spice'))) print "you have entered a wrong password!"; } #### #! /usr/bin/perl use strict; use DBI; use CGI qw(:standard); my($cgi); $cgi = new CGI; use CGI::Carp qw(fatalsToBrowser); my ($title) = "DB: Log in"; print $cgi->header (); print $cgi->start_html (-title=>"$title", -BGCOLOR=>"#ccddff", -style=>{'src' =>'style1.css'}); print "
DB: Log in

"; my $username; my $password; print "

"; print "

Enter user name

Enter password

"; $username = param('username'); $password = param('password'); print $cgi->end_html ();