| re: check cgi response via javascript
> Ok, I'll start by saying I am pretty new to HTML and brand new to[color=blue]
> javascript so sorry if this question is phrased in a difficult to
> understand way.[/color]
The question is not difficult to understand.
[color=blue]
> I have an html for that when a user clicks the submit button it will
> run a remote cgi program and based on the response do one of two
> things.[/color]
What kind of cgi program is this? (ie. what language is it in?)
[color=blue]
> 1. If the response contains "OK" continue the form submit.
>
> 2. If the response contains "NOGOOD" Cancel the submit and return to
> the form.[/color]
What is the "response"? Is it something the cgi program prints? Is it a cgi
variable value?
I do this all the time. There are lots of ways to do it... but if I know
what language your cgi program is in, I might be able to help out with the
code.
Basically, have your cgi program do the forwarding.
Post a link to your cgi code (not the program itself, but the code for the
program) and a link to the html form.
I would be glad to help. |