ASP: request.form is not returning value?

前端 未结 3 1913
醉酒成梦
醉酒成梦 2020-12-03 12:33

I have following form,

3条回答
  •  我在风中等你
    2020-12-03 12:55

    Don't use enctype="multipart/form-data"

    Remove that from the code and see if it works. The form-data enctype is used for uploading data, for example image files. You need to access the form elements slightly differently if you use that enctype.

    If you are uploading data, then the ASP object you are using (for example ASP Upload) will have functions to access form fields. Request.form("") wont work.

    Accessing the form values would be along the lines of:

    Set yourUploadComponent = CreateObject("Your.UploadComponentClassString")
    sFormValue = yourUploadComponent.Form.Item("txtName").Value
    

    You will need to read the objects documentation.

提交回复
热议问题