• ASP 关于Form提交信息


    Dim LRequestType, LUrl, LQueryString, sItem
    LRequestType = Request.ServerVariables("REQUEST_METHOD")
    LUrl = Request.ServerVariables("URL")
    LQueryString = Server.HTMLEncode(Request.ServerVariables("QUERY_STRING"))
    
    response.Write ("用户名="&request.Form("logineid")&",口令="&request.Form("loginpwd")&"</br>")
    response.Write ("LRequestType="&LRequestType&",LUrl="&LUrl&",LQueryString="&LQueryString&"</br>")
    
    response.Write ("<form NAME=""formLogin"" ACTION=""test.asp"" METHOD=""POST"">")
    response.Write ("<table>")
    response.Write ("<tr>")
    response.Write ("<td ALIGN=""RIGHT"" CLASS=""kmedium"">用户名:</td>")
    response.Write ("<td><input TYPE=""TEXT"" NAME=""logineid"" CLASS=""medium"" MAXLENGTH=""15"" STYLE=""FONT-FAMILY: Verdana""></td>")
    response.Write ("</tr>")
    response.Write ("<tr>")
    response.Write ("<td ALIGN=""RIGHT"" CLASS=""kmedium"">口 令:</td>")
    response.Write ("<td><input TYPE=""PASSWORD"" NAME=""loginpwd"" CLASS=""medium"" MAXLENGTH=""15"" STYLE=""FONT-FAMILY: Verdana""></td>")
    response.Write ("</tr>")
    response.Write ("</table>")
    response.Write ("<input type=hidden name="""&lrequesttype&""" value="""&LRequestType&""">")
    response.Write ("<input type=hidden name="""&lurl        &""" value="""&LUrl        &""">")
    response.Write ("<input type=hidden name="""&lquerystring&""" value="""&LQueryString&""">")
    if LRequestType = "POST" then
        For Each sItem In Request.Form
            If sItem <> "logineid" and sItem <> "loginpwd" and sItem <> "lrequesttype" and sItem <> "lurl" and sItem <> "lquerystring" And sItem<>"verifycode" then
                response.Write ("<input type=hidden name="""&sItem&""" value="""&Server.HTMLEncode(Request.Form(sItem))&""">")
            end if
        Next
    end if
    response.Write ("<input TYPE=""SUBMIT"" NAME=""btnLogin"" VALUE=""提交"" >")
    response.Write ("</form>")
    
    if LRequestType = "POST" then
        For Each sItem In Request.Form
            'If sItem <> "logineid" and sItem <> "loginpwd" and sItem <> "lrequesttype" and sItem <> "lurl" and sItem <> "lquerystring" And sItem<>"verifycode" then
                response.Write ("sItem="&sItem&", Request.Form(sItem)="&Server.HTMLEncode(Request.Form(sItem))&"</br>")
            'end if
        Next
    end if

    用户名=eee,口令=rrr
    LRequestType=POST,LUrl=test.asp,LQueryString=

    sItem=logineid, Request.Form(sItem)=eee
    sItem=loginpwd, Request.Form(sItem)=rrr
    sItem=GET, Request.Form(sItem)=GET
    sItem=/Cii/Mis/AlliancePermission/test.asp, Request.Form(sItem)=test.asp
    sItem=btnLogin, Request.Form(sItem)=提交

  • 相关阅读:
    基于密度的optics聚类算法
    unicode编码和utf-8编码详解
    聚类分析之k-prototype算法解析
    python学习笔记之正则表达式1
    聚类分析之模糊C均值算法核心思想
    Matlab编程笔记之GUI程序转exe
    Matlab学习笔记之安装教程
    SVPWM原理分析-基于STM32 MC SDK 5.0
    Allego Quick Reports
    SVPWM-实战
  • 原文地址:https://www.cnblogs.com/streetpasser/p/2997757.html
Copyright © 2020-2023  润新知