Home > Web Front-end > HTML Tutorial > The content of a form and two buttons are submitted to different jsp files_html/css_WEB-ITnose

The content of a form and two buttons are submitted to different jsp files_html/css_WEB-ITnose

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

Multiple form submission

Post the code directly

















Select authorized user:
Select authorized students: < ;/td>
< /td>
 
< %
while(student.hasNext()){
String[] strstudent=student.next();
%>
><%=strstudent[1]%>
<%
}
%>








The above button wants to submit the information of two selections and then extract the data and display it,
The second button wants to submit the data just extracted and the data in the select to another jsp for storage. How should this code be written?


Reply to the discussion (solution)
< input type="submit" value="query" >
Change to

Change the other submit button like this


Call the function and set two different parameters.

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