若风瑞文解说视频s6:ASP语句询问

来源:百度文库 编辑:高考问答 时间:2024/04/25 15:47:09
action=trim(Request("action")) *
UserNick=trim(Request("UserNick"))
if action="register"then checkpass=true *
if len(UserNick)<1 then checkpass=false
if checkpass then *
sql="insert...
表单中又有一句
<input type="hidden"name="action"value="register">
后面加*的是我不理解的
知道的人请详细说明

action=trim(Request("action")) '获取表单提交过来的action值 赋给action,trim()函数用于截去两端的空格
UserNick=trim(Request("UserNick"))
if action="register"then checkpass=true ''如果action值等于register那么checkpass的值为true(真)
if len(UserNick)<1 then checkpass=false ''同上
if checkpass then '如果checkpass为true(真)那么
sql="insert... ''''插入数据库