简体   繁体   English

如何将数组从视图传递到控制器

[英]How to passing array from View to Controller

I have problem I got some data from database into array and pass it to View. 我有问题,我从数据库中获取了一些数据到数组中并将其传递给View。 In View I print the array. 在视图中,我打印数组。 And I will to do button that when I clicked in then I delete one item from array and again print it. 然后单击按钮,然后从阵列中删除一项并再次打印。

I don't have idea, how i can pass this array from view again to the controller to redirect again. 我不知道如何将数组再次从视图传递到控制器以再次重定向。

Do you have any clues or maybe idea for do this in other way? 您是否有其他线索或想法可以通过其他方式进行?

Thanks 谢谢

您需要通过Ajax或传统方式发出新请求,因为内容更改的处理将在另一个PHP执行中执行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM