H hyc991 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-10 #1 提交一表单数据,使用了两个不同值的submit。 如何用java确定使用了哪个submit?
C cat.yy Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-26 #4 HTML页面: <form ...> <input type=submit name=btn1 value=xx01> <input type=submit name=btn2 value=xx02> </form> <%'asp的例子,原理一样 dim xx01,xx02 xx01=request("btn1") ‘接收参数 xx02=request("btn2") if xx01="xx01" then ‘判断是哪个按钮 是btn1按钮 end if if xx02="xx02" then 是btn2按钮 end if %>
HTML页面: <form ...> <input type=submit name=btn1 value=xx01> <input type=submit name=btn2 value=xx02> </form> <%'asp的例子,原理一样 dim xx01,xx02 xx01=request("btn1") ‘接收参数 xx02=request("btn2") if xx01="xx01" then ‘判断是哪个按钮 是btn1按钮 end if if xx02="xx02" then 是btn2按钮 end if %>
K kylin_2000 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #5 if(request.getParameter("btn1") != null){ ...................... }
G gyfstar Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-15 #6 (request.getParameterNames()).equals("btn1");
G goddy Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-23 #8 HTML页面: <form ...> <input type=submit name=btn1 value=xx01> <input type=submit name=btn2 value=xx02> </form> <% Stirng xx01,xx02; xx01=request.getParameter("btn1").toString(); xx02=request.getParameter("btn2").toString(); if(xx01.equals("xx01"))// 是btn1按钮 if(xx02.equals("xx02"))// 是btn1按钮 %>
HTML页面: <form ...> <input type=submit name=btn1 value=xx01> <input type=submit name=btn2 value=xx02> </form> <% Stirng xx01,xx02; xx01=request.getParameter("btn1").toString(); xx02=request.getParameter("btn2").toString(); if(xx01.equals("xx01"))// 是btn1按钮 if(xx02.equals("xx02"))// 是btn1按钮 %>