Post and get at the same time in php

前端 未结 6 2491
南方客
南方客 2020-11-27 05:56

Do you have any suggestions with my problem. I need to use get and post at the same time. Get because I need to output what the user has typed. And post because I need to ac

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 06:19

    As saig by the other answers, you can't do a get and a post request at the same time. But if you want to unify your PHP code in order to read a variable received through a get or post request, maybe you could use $_REQUEST

提交回复
热议问题