A while ago I have posted this question and had brilliant help from Bob. I have finished up the site and am testing it out.
Now I have discovered that whatever password I type in I get to the page. Seems that we have missed something here :-)
Ok, here is the "material":
This is the "sample login" (basically the same as on the site, just without all the other content around):
This is the cgi-script:
use CGI ':standard';
print header, start_html,
'), submit(-name=>'sb', -value=>'logon'),
elsif(param('username') and param('password'))
$unpw=param('username') . '|' . param('password');
open PWFILE, "nav.dat";
print "Location: $page\n\n";
print header, start_html;
print "sorry, we couldn't find that username and password";
print header, start_html,h1('sorry, you need to enter a username and password');
And this is the nav.dat file:
I am wondering what we are missing here?
Thanks a lot for your help!