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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

input type change - post not working

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
Hi,

I am changing all my clickable images to buttons - I though all I had to do was change the input type from "image" to "button" but when a button is clicked the form is not submitted

any ideas welcome

OLD image - this works fine
Code:
<input name="Action" type="image" id="Action" value="ADD" src="images/messagebutbot_06.gif" width="44" height="18" border="0" alt="send" onClick="return EW_checkMyFormcontactus(this.form);">

NEW button - jscript runs, but form is not submitted
Code:
<input name="Action" type="button" id="Action" value=" Send " border="0" alt="Send" onClick="return EW_checkMyFormcontactus(this.form);">
 
also, my form tags look like-

Code:
<form name="contactus" id="contactus" action="3coltemp.asp?pagesetupid=20&siteid=1&deptid=19" method="post">
...
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top