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 Quote Link to comment 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"> Quote Link to comment 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> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.