request.form集合判断
程序代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www."> <html xmlns="http://www."> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <form action="?action=lele" method="post"> <p> <input name="title" type="text" id="title" /> </p> <p> <input name="title2" type="text" id="title2" /> </p> <p> <input name="title3" type="text" id="title3" /> </p> <p> <input name="title4" type="text" id="title4" /> </p> <p> <input name="title5" type="text" id="title5" /> </p> <p> <input type="submit" name="Submit" value="提交" /> </p> </form> </body> </html>
程序代码:
<% if request.QueryString("action")<>"" then for each i in request.form response.write request.form(i)&"<br>" next end if %>
程序代码:
<% if request.QueryString("action")<>"" then for each i in request.form response.write i&"<br>" next end if %>
问下for each i in request.form里。。能判断表单项里的是 type="submit"类型的吗?
就是获取表单项里的类型
<input type="text"..... 获取到 text
<input type="submit"....获取到 submit
<input type="reset".....获取到 reset