or download this
## step 1. take the username and password from the form
## step 2. query the mysql db and check to see whether the password i
+s good for the username
...
print $cgi->header(-cookie=>$cookie);
$cookieuserid=$session->param("userid");
## now we can display anything to them because they just logged in