ASP语句询问

2025-06-20 07:38:26
推荐回答(1个)
回答1:

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... ''''插入数据库