Re: onSubmit vs. <.input type="submit"

by "Lara J. Fabans" <lara(at)lodestone-sw.com>

 Date:  Tue, 03 Jul 2001 05:39:12 -0700
 To:  "Peter-Paul Koch" <gassinaumasis(at)hotmail.com>,
hwg-techniques(at)hwg.org
 In-Reply-To:  hotmail
  todo: View Thread, Original
Hi,

I guess I wasn't clear.  They have two submit buttons and want to convert 
them to two
gif image buttons using onclick=submit()

How can submit() convey the same information as an HTMLsubmit button with 
respect to the name?

Thanks!

Lara

At 11:03 AM 7/3/2001 +0000, Peter-Paul Koch wrote:

>>>Client had <.input id="mediaMaint" name="mediaMaint" type=submit
>>>value="Special String" tabindex="3">
>>>
>>>There's two input buttons on this page and each has a different name.
>>>
>>>How can I use submit() in a similar fashion?  How do I pass the name/id 
>>>as to which "button" was clicked?
>
>If you put two submit buttons in the page, like
>
><.input id="mediaMaint" name="mediaMaint" type=submit
>value="Special String" tabindex="3">
>
><.input id="mediaMaint2" name="mediaMaint2" type=submit
>value="Special String" tabindex="3">
>
>the form sends the name of the pressed button with the form. So in the 
>server side program you can see which one is pressed. No special scripts 
>needed.
>
>ppk
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>

---------------------
Lara J. Fabans
Lodestone Software, Inc
lara(at)lodestone-sw.com

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA