如何在CodeIgniter中的单个post参数中传递多个值?

san*_*ari 1 php post codeigniter

我正在使用所选的 UI库为名为"tables"的帖子参数选择多个值.在Chrome网络控制台中,我可以检查它是否正常工作:

Form data
checkin:2012-06-15 16:00:00
checkout:2012-06-15 17:00:00
tables:14
tables:15
tables:16
customer:28
Run Code Online (Sandbox Code Playgroud)

但是当我尝试在控制器中恢复此表信息时

var_dump($this->input->post('tables'));
Run Code Online (Sandbox Code Playgroud)

我只获得了参数的最后一个值:

string(2) "16"
Run Code Online (Sandbox Code Playgroud)

我也尝试var_dump($_POST['tables']);了相同的结果.

p.g*_*all 5

尝试调用它tables[]而不是tables.