Re: OT CGI script with target in the body
- From: xhoster@xxxxxxxxx
- Date: 17 Aug 2005 19:07:29 GMT
"Jesse F. Hughes" <jesse@xxxxxxxxxxxxx> wrote:
> Gunnar Hjalmarsson <noreply@xxxxxxxxx> writes:
>
> > Jesse F. Hughes wrote:
> >> Gunnar Hjalmarsson writes:
> >>> Try onsubmit / windows.open.
> >> But I have two submit buttons. I only want a new window when button
> >> A
> >> is pressed. Isn't onsubmit a <form> attribute?
> >
> > Maybe you need two forms. Clumsy, but...
>
> I'm not sure that works for me.
>
> Maybe I should explain. I have a form for creating a database entry
> that includes a search string for selecting certain records from a
> different database.
>
> Submit button one is to check the results of the search, so that the
> user knows he's entered the right data before he adds it to the
> database.
>
> Submit button two is to add it to the database.
>
> Both buttons need the information from the same form. It is slightly
> preferable if button one opens a new window for displaying the search
> results, so that the form is still present at all times. (For
> technical reasons, I don't want to have to use the back arrow to
> re-display the form.)
Make use of the sticky-fields feature of CGI.pm. Have button one perform
the search, display the results of that search, and then re-display the
form (already filled out) for further action.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- Follow-Ups:
- Re: OT CGI script with target in the body
- From: Jesse F. Hughes
- Re: OT CGI script with target in the body
- References:
- Re: OT CGI script with target in the body
- From: Gunnar Hjalmarsson
- Re: OT CGI script with target in the body
- From: Jesse F. Hughes
- Re: OT CGI script with target in the body
- From: Gunnar Hjalmarsson
- Re: OT CGI script with target in the body
- From: Jesse F. Hughes
- Re: OT CGI script with target in the body
- Prev by Date: Re: OT CGI script with target in the body
- Next by Date: Re: OT CGI script with target in the body
- Previous by thread: Re: OT CGI script with target in the body
- Next by thread: Re: OT CGI script with target in the body
- Index(es):