将数据显示到表并计算 [英] displaying data to a table and calculate

查看:68
本文介绍了将数据显示到表并计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,我想要一个用户可以填写的html表单,然后点击显示,它会更新到另一个表单并进行计算


例如,只是说他们填写的表格是它有


名称:,日工作星期一,星期二,妻子,星期四,星期五:,工作:商店,hosi(每个工作小时数),他们然后提交表格,然后显示另一个表格并计算总小时数


想法家伙?

解决方案

您是否要求我们为您工作?您需要一个HTML表单和一个脚本来执行


_POST变量


David的计算,首先创建HTML表单以获取用户输入。


将这些元素嵌入到表单中。


[HTML]名称:< input type =" text" name =" name" />

Mon:< input type =" text" name =" day1" /> Hrs:< input type =" text" name =" hrs1" /> [/ HTML]


然后来自PHP方面。得到用户输入的这个值。


[PHP]


hey guys i want to have a html form which users would fil in and they click display and it would be update to another form and calculations carried out

e.g so just say they filled forms were it had

name: , day worked mon,tues,weds,thurs,fri: ,were worked: store, hosi(put number of hours worked in each),they then submit the form, the other form is then displayed and the total number of hours calculated

ideas guys??

解决方案

Are you asking us to do your work for you? You need a HTML form and a script to do the calculations from the


_POST variables


David, First create your HTML Form to fetch the user inputs.

embedded this elements in a form.

[HTML]Name: <input type="text" name="name"/>
Mon: <input type="text" name="day1"/>Hrs:<input type="text" name="hrs1"/>[/HTML]

then from the PHP side. get this values entered by the user.

[PHP]


这篇关于将数据显示到表并计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆