Posting array from form

前端 未结 7 763
刺人心
刺人心 2020-11-27 05:45

I have a form on my page with a bunch of inputs and some hidden fields, I\'ve been asked to pass this data through a \"post array\" only im unsure on how to do this,

<
7条回答
  •  半阙折子戏
    2020-11-27 06:23

    You can use the built-in function:

    extract($_POST);
    

    it will create a variable for each entry in $_POST.

提交回复
热议问题