I've got a cgi script which is checking for a valid password. If its valid I want to move to another cgi script. My question is within the cgi if the password is not valid, is there a function where I can redirect to another cgi, something like

$template->redirect("to this http://....cgi")

Or does the redirect take place within the template code. The template looks like this:

You could handle the "redirect" with the template by deciding which template to load based on the authentication of the user's username and password. If they are authenticated, you load one template and if the authentication fails, you load a different template.

Sorry to confuse you. I do have the full url in the redirect. I just didn't post it in the posting. But when you say that the only thing in the else block should be the exit is confusing me. I wanted to send the redirect in the else, and then exit. But this else code is failing with a script error.

You need to re-read what I posted.

How do you expect me to help you troubleshoot the problem without knowing the error?

In the future, please don't post beginning level questions like this in the advanced area.

BTW, I will not respond to any more PM's which should be posted in the open forum.