Hi, how to call two cgi programs by submitting one form. One cgi displays on the left side. The other cgi displays on the right side. I tried the following, it didn't work.
Code:
function checknum(myform) {
myform.action = "suggestLeft.cgi";
checknum_right();
return true;
}
function checknum_right() {
document.myformright.target = "lowright";
document.myformright.action = "suggestRight.cgi";
return true;
}
.....
<form method="get" name="myform" target="lowleft" onSubmit="return checknum(this)">
<input type="text" name="word" value="" size="30">
<input type="submit" value="Submit">
<input type="reset">
</form>
<form name="myformright" target="lowright" onSubmit="return checknum_right()">
</form>
Thanks for any suggest!!
|