duanchao1002 2016-05-23 09:13
浏览 4

处理跨多个表单的HTML表单数据所需的建议

I have created two HTML forms of which both ask for a customers name & telephone with the other form fields asking for different information because they are for different services.

Both forms can be completed individually without the other being completed for example, form 1 needs to be completed if a customer is purchasing a brand new product & then if they want to take out maintenance on that product they tick a checkbox & it takes them to form 2 which asks for some of the same information so to save them entering all that information again I want it to display their previous input info in the fields to show they no longer need to enter it again.

However, they may not want to purchase a new product as they already have one but want to take out maintenance therefore they can fill in form 2 from a blank form.

So I am after the best method to approach this whether it's with PHP or JavaScript.

Sorry for the long winded explanation.

Thx. Lee.

  • 写回答

1条回答 默认 最新

  • dpxw17759 2016-05-23 09:18
    关注

    Use JS to handle the form side of things and then feed that into a PHP service. You can handle all the form processing on the JS side and just have a PHP method take all the information if isset and proceed. Best way from a UI perspective.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?