lt;%request.setCharacterEncoding(”GB2312″);
%>
<%
String action = request.getParameter(”ACTION”);
String name = “”;
String str = “”;
if(action!=null && action.equals(”SENT”))
{
name = request.getParameter(”name”);
str = request.getParameter(”str”);
}
%>
text=”#000000″ topmargin=”5″>
“POST” target=”_self”>
value=”" size=”30″>
提交
<%
if(action!=null && action.equals(”SENT”))
{
out.println(”
你输入的字符为:”+name);
out.println(”
你通过URL传入的字符为:”+str);
}
%>