reprinted from: http://www.cnblogs.com/liuswi/p/3473379.html
1
method One:2 <!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD">3 <HTML>4 <Head>5 <title></title>6 <Metahttp-equiv= "Content-type"content= "text/html; charset=gb2312">7 </Head>8 9 <Body>Ten One <formAction=""name= "Form1"> A <inputtype= "button"value= "Query 1"type= "Submit"onclick= "form1.action= ' action_1 '; Form1.submit ();"/> - <inputtype= "button"value= "Query 2"type= "Submit"onclick= "form1.action= ' action_2 '; Form1.submit ();" /> - </form> the - or: - <ScriptLanguage= "JavaScript"> - functionModify () + { - document.form1.action="modify.jsp"; + document.form1.submit (); A } at - function Delete() - { - document.form1.action="delete.jsp"; - document.form1.submit (); - } in </Script> - to <formname= "Form1"Action=""> + <INPUTType= "button"Name= "Modify"Value= "Modify"OnClick= "Modify ()"> - <INPUTType= "button"Name= "Delete"Value= "Delete"OnClick= "Delete ()"> the </form> * This enables multiple buttons to be sent to different Web pages. $ </Body>Panax Notoginseng </HTML> - the Method Two: + when submitting a form, the action inside cannot take parameters, for example: A <formAction= "test.do?args=888"> the <inputtype= "button"value= "Submit"> + </form> - $ in this way, test.do cannot read args and must be replaced by the following notation $ <formAction= "Test.do"> - <inputtype= "hidden"name= "args"value= "888"> - <inputtype= "button"value= "Submit"> the </form>
(go) A form form implementation submits multiple actions