Image button to submit repeat submit questions to discuss with the form

In many cases, in order to beautify the form will change the submit button to use a picture instead. But if didn't pay attention to details will result in repeat submit form, causing some inexplicable errors, such as repeated injection such as database records. we see the following form is a simple code:

this code is correct, there will be no duplicate submissions. &other; <Input type=" Image" >Throughout the &; In fact and &other <Input type=" Submit" >Throughout the &; The effect is the same, a little pictures that will be executed the submit () operation. but some people don't trust, add an onclick to image movement of gild the lily, code such as:

I am the gutter capsize problems, lead to the user login to submit the graphical verification code what is correct. Think, users have submitted twice, the second submit verification code also can right? 2. Image button how to prohibit duplicate submissions?

use the image to file there are two ways to form: 1. <Input type=" Image" src=http://www.jb51.net//web/" XXX. Gif" > the picture automatically to submit Form Form to type=" Submit" If submitted prior to judgment, is tested using

but commit occurs form is submitted in this way the phenomenon of two, often can create form elements are duplicate submissions, database are included in the abnormal!!!!! especially with IE problem, use the firefox will not complain! Note that at this time, to put the database is set to the same information to the only! the reason: in HTML a description of the image is &other Create an image control, the control will lead to form has been submitted immediately after click &throughout; . 2. <Img Alt=" Submit " src=http://www.jb51.net//web/" XXX. Gif" Id="art580">

Script Home, is a commitment to share good utility software, network material, station source, template procedures, information technology, network technology, personal web blog. This website aims to establish with more people sharing networks to bring the joy and wonderful!