Home > Web Front-end > HTML Tutorial > Use image to submit form and don't want to use button to submit form_HTML/Xhtml_Web page production

Use image to submit form and don't want to use button to submit form_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:39:21
Original
1527 people have browsed it

Copy code
The code is as follows:







I don’t want to use a button to submit the form, I want to use a good-looking image to submit it

That way it will be submitted twice, the input itself is submitted once, and the js script is submitted again
Use images as submissions There are several methods for buttons:
1.

Copy code
The code is as follows:







As written by the original poster himself, this is completely ok
2.

Copy code
The code is as follows:

<script> <br>function formsubmit(){ <br>document.formtest.action="formtest.jsp"; <br>document. formtest.submit(); <br>} <br></script>






This method is often used in hybrid programming. For example, the parameters you want to submit change as the dynamically retrieved content changes.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template