douzhi4056 2016-09-11 14:13
浏览 43

Jquery序列化2个数组?

Within my page I have a normal form and I serialize that and submit it via AJAX to a back php page to be processed.

On a different tab within the same page, I have two tables that users can add, edit or delete entries from. The updates from this are saved into two arrays one for each table. These arrays are not sent back with the initial form submission.

Once the form submission has completed and is successful, I want to pass these two arrays back for processing. Ideally I need them going back separately so I can loop through each one individually.

Can that be done. For simplicity the arrays are arrayOne and arrayTwo. The contain data similar to :

['add;1234;533445;23421','edit;5421;530105;66521', 'del;5512;542165;98701']

Is there anyone with one AJAX command I can send two unique arrays and if there is how do I access them in php ?

Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 个人网站被恶意大量访问,怎么办
    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 Centos / PETGEM
    • ¥15 划分vlan后不通了
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)