ASP Cookiescookie 常用于识别用户。Cookie 是什么?cookie 常用用于识别用户。cookie 是一种服务器留在用户计算机上的小文件。每当同一台计算机通过浏览器请求页面时,这台计算机将会发送 cookie。通过 ASP,您能够创建并取回 cookie 的值。如何创建 Cook...
用户输入Request 对象可用于从表单取回用户信息。HTML 表单实例<form method="get" action="simpleform.asp"> First Name: <input type="text"...
实例说明:<!DOCTYPE html> <html> <% dim cars cars=Request.Form("cars") %> <body> <form action="demo_radiob...
实例说明:<!DOCTYPE html> <html> <body> <form action="demo_simpleform.asp" method="post"> Your name: <in...
实例说明:<!DOCTYPE html> <html> <body> <form action="demo_reqquery.asp" method="get"> Your name: <input...
ASP 子程序在 ASP 中,您可通过 VBScript 调用 JavaScript 子程序,反之亦然。子程序ASP 源代码可包含子程序和函数:实例说明:<!DOCTYPE html> <html> <head> <% sub vbproc(num1...
ASP 变量变量用于存储信息。变量的生存期在子程序外声明的变量可被 ASP 文件中的任何脚本访问和修改。在子程序中声明的变量在每次子程序执行时被创建和撤销。子程序外的脚本无法访问和修改该变量。如需声明供多个 ASP 文件使用的变量,请将变量声明为 session 变量或者 application 变...
实例说明:<%@ language="javascript" %> <!DOCTYPE html> <html> <body> <% var d=new Date() var h=d.getHours() Res...
实例说明:<!DOCTYPE html> <html> <body> <% dim h h=hour(now()) response.write("<p>" & now()) response.write...
实例说明:<!DOCTYPE html> <html> <body> <% dim i for i=1 to 6 response.write("<h" & i & ">Headin...