$_POST in php 5.3.5 does not work

后端 未结 9 1115
不思量自难忘°
不思量自难忘° 2021-01-07 02:17

I\'m working on a page in PHP 5.3.5, and it seems that $_POST doesn\'t contain the data submitted from my form.

This is the HTML file :

         


        
9条回答
  •  时光取名叫无心
    2021-01-07 03:10

    PHP 5.3 is moving away from using global, pre-set variables, like $_POST, to avoid vulnerabilities.

    The issue, as I understand it, is that programmers who have never had to use $_POST or $_GET might treat it as any other variable and open themselves up to security threats.

    I haven't discovered the "proper" way to retrieve $_POST data yet, but the method I've using seems fairly sanitary.

    This transfers the parsed HTTP POST string to the $_POST variables

提交回复
热议问题