<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>
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!