Home > Web Front-end > HTML Tutorial > Use of submit_html/css_WEB-ITnose

Use of submit_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:12:00
Original
1087 people have browsed it

<form name="form3" id="" method="post" action="add.jsp">	 	<input id="dd" type="text" name="ana" />	 	<input id="dd" type="text" name="ano" />		<input id="dd" type="text" name="aqq" />		<input id="dd" type="text" name="aaddr"/>		<br>         <input type="submit" value="保存" name="b" > <input type="submit" value="查询" name="c" ><input type="reset" value="重写">         </form>
Copy after login

Click save to enter add.jsp. How to make the query click to enter fi.jsp.


Reply to discussion (solution)

Because you use The same submittype. . After clicking, only the action of the form will be triggered. . If you want to implement it, just use button. . Then write the method after clicking













Thank you very much!








The query button should be button, there is no need to use submit

type=submit is to send the form
Submit uses form submission (form.submit()) as its default event after onclick

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