Hi ,
The form element , it is supposed to be a get or post( I guess you should post)
Also have the condition enforded with a && than the , to enforce the logical condition
if($cookie eq $user && $cookie1 eq $pass){
print<<HTML
HTML
}else{
error_page();
}
This can be tried instead of
if ($cookie1 eq $user , $cookie2 eq $pass) ,just on the wake I wanted to say these suggestions