--- Andy Schafer <
lostgameparts@...> wrote:
> Hi,
>
> I'm pretty new to Perl and need some help!
>
> I am working on a project that requires 4 forms on the same page. I
> would like to be able to submit each one separately but if the user
> has entered information in any of the other 3, that information will
> be lost. (I think, and please correct me if I'm wrong!)
>
> What I'm wondering is this: Is there a way to submit a form to the CGI
> script without actually leaving the page the form is on?
>
> I thought about using iFrames for each form but really don't like that
> idea. I could also use one submit button for all 4 forms but I don't
> like that either.
>
> I've hunted through all my books and on the net with no luck. I know
> I'm probably overlooking something simple but I can't for the life of
> me find it!
>
> If any of you can help me I would really appreciate it!
>
> Thank you very much!
> Andy
>
Hi,
The solution is HTML related.
All that you have to do is to add "target" attribute to the <form> element:
<form ... target="_blank" >.
In this case the form will be submitted and a new window will be open, keeping
your original
window's content.
regards,
Marcel
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com