代碼如下
<%@ page contentType=
<%
String num=request
String random=(String)session
if(num!=null&&random!=null)
{
if(!num
{
out
out
//response
}
else
{
out
}
}
%>
<html>
<head>
<title>圖片驗證</title>
<meta http
</head>
<body>
<form action=
<table>
<tr>
<td>
<input type=
</td>
<td>
<img src=
</td>
</tr>
</table>
<input type=
</form>
</body>
</html>
說明
[
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20715.html