Professional Documents
Culture Documents
Code
Code
asp
<html>
<body>
<%
dim num
num=Request.Cookies("num")
if num="" then
Response.Cookies("num")=1
else
Response.Write("welcome again")
Response.Cookies("num")=num+1
end if
%>
</body>
</html>
FORM.asp
<html>
<body>
<table cellspacing=”0”>
<tr>
<td>
NAME:
</td>
<td>
<input type=”text” name=”t1”>
</td>
</tr>
<tr>
<td>
AGE:
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</form>
</body>
</html>
RETRIEVE.asp
<html>
<body>
<%
dim name,age
name=Request.Form("t1")
age=Request.Form("t2")
Response.Write("The name is:"&name&"<br/>")
%>
</body>
</html>