表单提交到网站并通过电子邮件发送结果 [英] Form Submit to site and email results

查看:103
本文介绍了表单提交到网站并通过电子邮件发送结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的小教堂,我感到很抱歉,但是我要说的是他们拥有的最好的网络人,可怜的教堂.无论如何,我都有些烦恼,可以肯定会使用一些帮助.

我们已经与信用卡公司建立了在线接受捐赠的渠道.我写了一个带有几个javascript函数的html表单,只是为了将所有内容正确格式化并在不同的领域(如什一税,青年,牧师欣赏等)进行总计,然后再将其发送到信用卡公司的网站.

我的问题是信用卡公司没有将这些其他字段转发给我们,以便我们可以了解如何分发礼物.

有没有办法让操作将数据发送到他们的站点,但又将表单结果发送到电子邮件地址?

我给出了这个故事的长篇,以防万一我完全以错误的方式讲解这个故事.朝着正确方向的任何观点都将不胜感激.

谢谢

I''m sorry to say for my little church but I am about the best web guy they have, poor church. I''m a little over my head and could sure use some help, anyway to my question.

We have setup with a credit card company to accept donations online. I wrote an html form with several javascript functions just to get everything to format correctly and total the giving to different areas (i.e. tithe, youth , pastor appreciation etc...) before sending it to the credit card company''s site.

My problem is the credit card company does not forward these additional fields back to us so that we can see how to distribute the gift.

Is there a way to have the action send the data to their site but also send the form results to an email address?

I gave the long version of this story in case I am totally going about this the wrong way. Any point in the right direction would be appreciated.

Thanks

推荐答案

如果您的站点是Apache/PHP,这很容易(而且我确信使用IIS/ASP.NET也是一样的简单,我只是不知道细节而已).处理表单时,您将访问很多
If your site is Apache/PHP it''s easy (and I''m sure it is just as easy with IIS/ASP.NET, I just don''t know the details). When you process the form, you will be accessing a lot of


_GET [''xxx'']或
_GET[''xxx''] or


_POST [''xxx' ']变量.将这些文本和一些文字文本构建为字符串,然后像这样通过电子邮件发送:
_POST[''xxx''] variables. Build these and some literal text into a string, then email it like so:
<?php


这篇关于表单提交到网站并通过电子邮件发送结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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