[WEB4LIB] Re: How to submit form and forward user to another
Nancy Lin
nlin at library.berkeley.edu
Mon Feb 22 19:03:03 EST 1999
To add to this, if you need to process the form info first, I let the form
call a cgi script. Supposing it's a perl script, the script will
process the info, and at the end have a
print "Location: http://www... \n\n";
And if there were errors in the form, the perl script will dynamically
generate an error page.
If you don't need to process the info (though I can't imagine why not),
you could have the form action be an url.
--
Nancy
On Mon, 22 Feb 1999, Johanne-Berit Revheim wrote:
> At 14:50 22.02.99 -0800, Donald Barclay wrote:
> >Does anyone know of a more-or-less simple way to set up a web form so that
> >when users fill out the form and click the "Submit" button they are
> >automatically sent to some other webpage?
> >
> >This question was asked a few months ago on Web4Lib with no satisfactory
> >answer provided. (I checked the archives.) I've looked all through the
> >website on HTML and Java script with no luck either. I'm either not looking
> >for the right terms or this is harder than it seems.
>
> When I do this, I let the form action be a cgi-bin script or ASP page that
> give a blank page, containing a redirect meta tag, as result.
> (<META HTTP-EQUIV="refresh CONTENT="0;URL=http://www.....">)
>
> But I suppose you might wanted this done without any use of cgi-bin or ASP ...
>
> -Johanne
>
> --------------------------------------------------------------------------
> Johanne-Berit Revheim
> Research Documentation Unit, University Library,
> University of Bergen, Avd. HiB, N-5020 Bergen, Norway.
> e-mail: johanne.revheim at ub.uib.no
>
>
More information about the Web4lib
mailing list