[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
At 12:00 PM 2/7/96 CST, you wrote:
>When I click a button, I grab a bunch of form objects, build a query, and
>then want to pass it to a cgi on another server. Is such a feat possible?
You call the CGI script with the GET or POST method as part of the form.
This part is standard HTML.
If you wish to process the form contents before you send it to the CGI
script. you either add an onSubmit
event handler to the "Submit" button, or use the submit() method. I
personally prefer the latter, but either
and if they pass muster, send
the form on. See http://gmccomb.com/valid.htm and valid1.htm for examples
of validating form input (the
valid1.htm example connects to a basic CGI script that echoes back the form
stream method to read it. But, you
could fake sending back return values by using something like hidden fields
in a form. You don't even need to
have any visible form elements that show up in the browser: just a
<FORM></FORM> definition with hidden
text fields in it -- a hundred of 'em if you need that many. Your
but the hidden text approach is