Looping through a form to get field names and filed values issue (classic ASP)

前端 未结 2 401
礼貌的吻别
礼貌的吻别 2020-12-10 13:33

on submit of a form, I would like to capture the field names and values of the forms and I want them passed without even showing in the browser (Response.Write makes them vi

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 14:21

    This is a very small snippet I use to show all form fields POSTED

    <% 
    For x = 1 to Request.Form.Count 
      Response.Write x & ": " _ 
        & Request.Form.Key(x) & "=" & Request.Form.Item(x) & "
    " Next %>

提交回复
热议问题