> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 17, 2001 4:01 PM
> To: CGI Beginners
> Subject: new html window
> 
> 
> hello all-
> i'm writing a formmail-esque script that checks for required 
> fields coming 
> in from the html form. should a field be missing user input, 
> i'd like to 
> have a new html window open displaying the missed fields.
> i'm familiar with using the Location function to redirect the current 
> browser to a new page, however, i'm curious to know how i 
> would go about 
> opening a new window to display my generated html.

After you validate the form, write the error messages out to
a file. Then in the response sent back to the client, send a
small JavaScript to do a window.open() which will load those
error messages, probably via another CGI script to read the
file you created from the first request. Sounds like a lot
of work to me. Why do you want to do this?

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to