HTML、PHP、传真

发布于 2024-10-05 22:36:14 字数 45 浏览 0 评论 0 原文

我想制作一个网页表单将该数据发送到传真号码?

有什么想法吗?

I want to make a web-page form send that data to the fax number?

any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

潦草背影 2024-10-12 22:36:15

我从来没有这样做过,但谷歌结果建议我这些链接:

http://www.interfax。 net/en/dev/webservice

http://www.send2fax.com/

http://www.programmableweb.com/mashup/send-a-fax-from- php

让我知道这是否有帮助

I've never done this, but google results suggest me those links:

http://www.interfax.net/en/dev/webservice

http://www.send2fax.com/

http://www.programmableweb.com/mashup/send-a-fax-from-php

Let me know if that is helpful

浮光之海 2024-10-12 22:36:15

如果您愿意使用商业服务,您可以按照 Interfax 网站上的说明来解决您的网络表单到传真需求。他们的说明总结如下,但请访问他们的“Web 表单使用 PHP 传真”页面以获取实际代码。

您需要三个部分:

  1. 网络表单 - 一个常规的 HTML 表单,用于收集与传真相关的字段,例如收件人姓名、传真号码和传真消息。提交后,它会通过表单的“action”值调用 Web 表单处理脚本。
  2. 网络表单处理脚本 - 它执行以下操作:
    • 保存所有设置,例如您的 InterFAX 用户名和密码。
    • 从网络表单收集值。
    • 对提交的值执行错误检查。
    • 打开模板文件(见下文)并使用表单中提交的值填充该文件。
    • 将填充的模板文件提交至 InterFAX 以进行传真。
    • 显示提交结果(即不是传真传输结果)
  3. 由表单中输入的内容填充的传真模板 - 您可以在此处确定传真的外观。您可以使用 HTML 和 CSS 进行完整的页面布局控制。

一旦访问者填写表单并单击“提交”,插入的值就会传递到表单处理脚本。该脚本使用这些值填充模板并将其提交给传真服务进行处理。传真已发送,您可以选择在发送后收到电子邮件确认。

If you're open to using a commercial service, you could follow the instructions on the Interfax web site to solve your webform-to-fax requirement. Their instructions are summarized here, but visit their "Web Form to Fax with PHP" page to get the actual code.

You'll need three parts:

  1. A web form - a regular HTML form that collects faxing-related fields, such as the recipient name, fax number, and the fax message. Once submitted it calls the web form processing script through the "action" value of the form.
  2. A web form processing script - it does the following:
    • Holds all settings, such as your InterFAX username and password.
    • Collects values from the web form.
    • Performs error checking on submitted values.
    • Opens a template file (see below) and populates it with values submitted in the form.
    • Submits the populated template file to InterFAX for faxing.
    • Shows the submission result (i.e., not the fax transmission result)
  3. A fax template which gets populated by content entered into the form - This is where you determine what your fax will look like. You can use HTML and CSS for full page layout control.

Once a visitor fills in the form and clicks "Submit", the inserted values get passed to the form processing script. This script populates the template with these values and submits it to the fax service for processing. The fax gets sent and you can optionally get an email confirmation once it does.

差↓一点笑了 2024-10-12 22:36:14

很多公司都会为您提供 API 来执行此操作。

但它不会是免费的。

There are lots of companies that will provide you an API to do this.

It won't be free however.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文