Jump to content

reset image button


ballouta

Recommended Posts

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

<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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.