in reply to Login page query

Using CGI you could redirect:

print redirect('http://mydomain/main.html');

Though you perpahps want to store the fact the user has successfully authenticated in a server side session, as you should check in each subsequent page that the user has logged in. Again, see CGI for more details.

Hope this helps

Martin