Posted by Adrienne Boswell on 01/15/08 02:30
Gazing into my crystal ball I observed Chris <chris95008@yahoo.com>
writing in news:91776f54-5df8-42a3-a381-0f521ecc5791
@u10g2000prn.googlegroups.com:
> I have two onsubmits I'd like to include in my <FORM...> tag and
> wanted to know before I go through the work of putting in all the code
> if this is even allowed. And if not then how should I be calling it?
>
><FORM action="test.cgi" method="POST" onsubmit="csave()"
> onSubmit="return checkform()">
>
> Thanks,
> Chris
>
The way to do it is to name the submit buttons, <input type="submit"
name="submit1" value="Submit 1">
and
<input type="submit" name="submit2" value="Submit 2">
Then you check server side which submit got pressed.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|