Posting from IE8 to PHP gives blank $_POST

前端 未结 5 680
失恋的感觉
失恋的感觉 2021-01-13 01:05

I have a simple HTML form, sending a post request to a php script. In IE8, the form only works intermittently - most of the time the PHP script sees an empty $_POST variable

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 01:54

    If you are posting a file some of the time (i.e. with a file input) then make sure you set enctype="multipart/form-data" in your

    element.

提交回复
热议问题