$_POST in php 5.3.5 does not work

后端 未结 9 1051
不思量自难忘°
不思量自难忘° 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:15

    Is your HTML form method se to to POST?

    <form method="post" action="process.php">
    <fieldset><legend>your data</legend>
    <input type="text" name="txtname" id="id_name" />
    <input type="text" name="txtage" id="id_age" />
    </fieldset>
    <button type="submit">OK</button>
    </form>
    
    0 讨论(0)
  • 2021-01-07 03:15

    I also had the same problem.I used windows notepad for editing .php file and accidentally saved the file in Unicode encoding and that was creating the problem. Then I saved it in the UTF-8 encoding, and it worked like a charm. Hope this might help.

    0 讨论(0)
  • 2021-01-07 03:19

    Have you check your php.ini ?
    I broken my post method once that I set post_max_size the same with upload_max_filesize.

    I think that post_max_size must less than upload_max_filesize.
    Tested with PHP 5.3.3 in RHEL 6.0

    0 讨论(0)
提交回复
热议问题