dongping4901 2015-09-07 19:05
浏览 35

购物车数组数据未使用表单数据处理

Overview: I have a shopping cart (cart.html.php) to collect user selections to be emailed. If the cart count > 0, I include a form (quote.html.php) to collect prospect info. On submission, the form posts the prospect's data and sends an email of that data. I want to also include the cart content.

Problem: when I set the action of the form to action="", or action="." in order to process in on the index.php, so I can loop through the cart content (foreach($cart as $item) the form will not submit.

If I set the action to action="process-rfq.php", the form processes the form data correctly but not the cart. The cart array remains behind, throwing a foreach error.

Thus, both options fail and I do not know what to do to fix it. Any help is appreciated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题