how to get post from same name textboxes in php

后端 未结 3 1798
半阙折子戏
半阙折子戏 2021-01-26 06:25

I have a form with multiple textboxes which are created dynamically, now all these textboxes are of same name lets say txt, now is there any way that when form proc

3条回答
  •  醉梦人生
    2021-01-26 07:17

    If you want name, you could name the input with txt[name1], then you could get it value from $_POST['txt']['name1']. $_POST['txt'] will be an associative array.

提交回复
热议问题