ballouta Posted September 12, 2008 Share Posted September 12, 2008 Hello I want to create a reset button for my contact form using the image i have: reset.jpg I tried some google help but the image overided the default text of the reset button so it looked very ugly. would you please help. thank you Link to comment https://forums.phpfreaks.com/topic/123899-reset-image-button/ Share on other sites More sharing options...
dropfaith Posted September 12, 2008 Share Posted September 12, 2008 <input type="image" src="rainbow.gif" name="image" width="60" height="60"> Link to comment https://forums.phpfreaks.com/topic/123899-reset-image-button/#findComment-639630 Share on other sites More sharing options...
ballouta Posted September 12, 2008 Author Share Posted September 12, 2008 this image submitted the form instead of resetting it! <form method="POST" action="fdfd.php"> <p dir="ltr"> </p> <p dir="ltr"><input type="submit" value="Submit" name="B1"></p> <p dir="ltr"><input type="image" src="images/reset.jpg" name="image" width="57" height="25"></p> </form> Link to comment https://forums.phpfreaks.com/topic/123899-reset-image-button/#findComment-639638 Share on other sites More sharing options...
dropfaith Posted September 12, 2008 Share Posted September 12, 2008 <input type="image" onClick="this.form.reset()"> <a href="javascript:document.formName.reset()"><img src="reset.gif" border=0 alt="Reset"></a> check out here if those two options fail you need javascript to reset a form with an image http://www.irt.org/articles/js185/index.htm Link to comment https://forums.phpfreaks.com/topic/123899-reset-image-button/#findComment-640161 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.