简介:
城市:
6
图 4-6 requestForm3.jsp <%@ page contentType="text/html;charset=gb2312"%> <%! public String trans(String str) throws Exception{ byte b[] =
str.getBytes("ISO-8859-1"); str = new String(b); return str; } %> <% String name = trans(request.getParameter("name")); String pass = trans(request.getParameter("pass")); String sex = trans(request.getParameter("sex")); String[] temp = request.getParameterValues("checkbox"); String xingge=""; for (int i = 0; i< temp.length; i++){ xingge = xingge + temp[i] + " "; } xingge =