My solution, which I discovered a few years ago and is still going
strong for me, is pessimism: assume the user will make a mistake and
the login form will have to be redisplayed.  Use the login page as its
own form action instead of (optimistically) the cgi that would return
the next page.  In the (surprising) case that the login succeeds,
either issue a redirect or have the same script somehow print out
whatever should appear next (or include javascript that requests it in
a new window).

-John

On Wed, Jul 30, 2003 at 01:12:42PM -0400, Bob Mariotti wrote:

> User requests access to a site and the resident cgi delivers a page with 
> a login panel which itself uses a form handled by another perl cgi. 
> This 2nd cgi processes the login page and does EITHER of two things...
> If accepted - it needs to open a new browser window to contain the 
> output from a called perl module.
> If failed - it needs to reissue the incoming page with an error message set.
> 
> I'm currently using some javascript commands embedded with image buttons 
> to control this but my problem is how to get the new window opened PRIOR 
> to calling the module to generate the page content.

-- 
John Tobey <[EMAIL PROTECTED]>
\____^-^
/\  /\
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to