简体   繁体   English

创建实时价格计算表

[英]Creating a real-time price calculating form

I'm working on a project which includes an order form which calculates the price of a door in real-time. 我正在一个项目中,该项目包括一个可以实时计算门价格的订单。 The problem is that I can't decide what path should I take. 问题是我无法决定应该走哪条路。

Form inputs will be: 表单输入为:

  • Frame (Dropdown) 框架(下拉)
  • Door height 门高度
  • Door width 门宽
  • Frame Material (Dropdown) 车架材质(下拉)
  • Door Material (Dropdown) 门材料(下拉)

I was given a list of price tables which are sorted by maximum width & height. 我得到了价格表的列表,这些价格表按最大宽度和高度排序。 The tables then contain prices for each door sorted by door and frame materials. 然后,表格包含按门和框架材料分类的每个门的价格。

What languages should I use for this project? 我应该为这个项目使用什么语言?

Thanks for the help in advance. 我在这里先向您的帮助表示感谢。

If it is just an indication of the price without further actions, I would just put all data into an JavaScript object and present it that way. 如果这只是价格的指示,而不需要采取进一步的措施,那么我只需将所有数据放入JavaScript对象中,然后以这种方式呈现。

If you are planning on doing serverside stuff with it, you could still use JavaScript to dynamically update everything, but also re-calculate it with PHP to avoid people from using the console to change values. 如果您打算用它来做服务器端的工作,您仍然可以使用JavaScript动态更新所有内容,但是可以使用PHP重新计算它,以避免人们使用控制台更改值。

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

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