php $_POST array empty upon form submission

前端 未结 27 3358

I have a custom CMS i\'ve built that works perfectly on my dev box (Ubuntu/PHP5+/MySQL5+).

I just moved it up to the production box for my client and now all form su

27条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 10:09

    This is sort of similar to what @icesar said.

    But I was trying to post stuff to my api, located in site/api/index.php, only posting to site/api since it gets passed on to index.php by itself. This however, apparently cause something to get messed up, as my $_POST got emptied on the fly. Simply posting to site/api/index.php directly instead solved it.

提交回复
热议问题