Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with forms and input types

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I have this form with a bunch of buttons.

<form method=post action=&quot;\somedll.dll&quot; id=someid name=somename>
<input type=image src=imgsrc1.gif LANGUAGE=javascript onClick=&quot;cmdimg1_onclick()&quot;>
<input type=image src=imgsrc2.gif LANGUAGE=javascript onClick=&quot;cmdimg2_onclick()&quot;>
<input type=image src=imgsrc3.gif LANGUAGE=javascript onClick=&quot;cmdimg3_onclick()&quot;>
<input type=submit value=&quot;Submit&quot;>

When I click on the buttons (Button1-Button3), the action=&quot;\somedll.dll&quot; kicks off. How do I code it so that it kicks-off the onclick function instead of the somedll.dll.

How do I change the 4th button (input type=submit) to be type image and kicks-off the somedll.dll action when clicked?

Any help will be greatly appreciated.






 
<form method=post action=&quot;\somedll.dll&quot; id=someid name=somename>
<input type=image src=imgsrc1.gif onClick=&quot;cmdimg1_onclick();return false&quot;>
<input type=image src=imgsrc2.gif onClick=&quot;cmdimg2_onclick(); return false&quot;>
<input type=image src=imgsrc3.gif onClick=&quot;cmdimg3_onclick(); return false&quot;>
<input type=image src=imgsrc4.gif>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top