Fog Juice Posted March 27, 2008 Share Posted March 27, 2008 How can I create a submit button on a form that is an image? <input type="submit" /> I have the following code but this doens't work as a submit button, it only works as a button <input type="image" SRC="images/login.png" onmouseover="this.src='images/loginhover.png'" onmouseout="this.src='images/login.png'" border="0"> Link to comment https://forums.phpfreaks.com/topic/98109-how-do-i-create-an-image-submit-button-on-a-form/ Share on other sites More sharing options...
Fog Juice Posted March 27, 2008 Author Share Posted March 27, 2008 nevermind it works... code above is correct. Link to comment https://forums.phpfreaks.com/topic/98109-how-do-i-create-an-image-submit-button-on-a-form/#findComment-501920 Share on other sites More sharing options...
zenag Posted March 27, 2008 Share Posted March 27, 2008 <SCRIPT language="JavaScript1.2"> function submitform() { document.myform.submit(); }<A href="javascript: submitform()" ><img src="head_logo.gif" width="33" height="19" border="0" ></A> Link to comment https://forums.phpfreaks.com/topic/98109-how-do-i-create-an-image-submit-button-on-a-form/#findComment-501925 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.