自动填充表格 [英] Auto Populating Form

查看:60
本文介绍了自动填充表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我创建了一个事件注册表单。在人们可以注册的活动期间,他们会举行一系列不同的会议。我想要做的是当他们检查一个事件时,事件的成本会自动添加到总计中。底部的字段让人们知道他们付了多少钱。我认为这很简单,但我找不到我的生活怎么做。


非常感谢任何帮助。我不是程序员,所以如果有人知道这样做的实际代码以及它的去向,那将是完美的。


提前致谢。


Cory

Hello All,

I am created an Event Sign up form. They have a bunch of different conferences during the event people can sign up for. What i want to do is when they check an event, the costs of the event is automatically added to a "total" field at the bottom so people know how much they are paying. I assumed this would be simple, but i cant find for the life of me how to do it.

Any help would be very greatly appreciated. I am not a programmer, so if anyone knows the actually code to do this and where it goes, that would be perfect.

Thanks in advance.

Cory

推荐答案

你打算用什么语言做这个?总需要保存在像数据库这样的地方吗?一般来说,我们不只是为我们提供帮助的人编写脚本。


Aric
What language are you planning on doing this in? Does the total need to be saved somewhere like a database? Generally, we don''t just write scripts for people we offer assistance.


Aric


如果有一个简单的方法将javascript函数实现为已经建立的HTML表单,该表单使用php来处理这将是很好的。


我不希望它是自定义编写的,我认为必须有类似的东西已经完成,或者至少我可以使用的元素。


就像我说的,我有办法处理表格并且可以创建格式和其他所有内容,我只需要一个小函数来加入已经检查过的内容并给出总共在一个盒子里。它基本上只是为了用户的利益,并使输入付款的人更简单,看看总数是多少。


谢谢。


Cory
If there is a simple way to implement a javascript function into an already established HTML form that uses php to process that would be great.

I wouldnt expect it to be custom written, I would assume there has to be something like this out there that has already been done, or at least elements that I can use.

Like i said, I have the way to process the forms and can create the forma nd everything else, I just need that one little function to take add up what has been checked and give a total in a box. It is basically just something for the users benefit, and to make it simplier for the people inputting the payments to see what the total was.

Thanks.

Cory


你显然需要Javascript。发布你的HTML代码(在标签中)。


这个这个这个可以帮助你。
You will obviously need Javascript for this. Post your HTML code (in tags).

See this, this and this to help you.

这篇关于自动填充表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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