如何使用 PDF 表单和 Adobe Acrobat 发送 IP 地址?
我有一个 PDF 表单,我想发送点击提交按钮的人的 IP 地址以及表单的其他值。我正在使用 Adobe Acrobat。有人能帮我解决这个问题吗?多谢!!!
I have a PDF form and I would like to send the IP address of the person that hits the submit button with the other values of the form. I am using Adobe Acrobat. Could anyone help me with this? Thanks a lot!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从服务器脚本的角度来看,它并不关心提交的内容是来自 PDF 表单还是 HTML 表单。只需在您要提交到的服务器脚本中选取请求的 IP 地址(就像在 ASP.NET 中选取任何 IP 一样):
Request.Servervariables("REMOTE_ADDR")
或者
HttpContext.Current.Request.UserHostAddress;
From a server script point of view, it doesn't care if the submission comes from a PDF form or an HTML form. Just pick up the IP address of the request inside the server script you're submitting to (as you would any IP in ASP.NET):
Request.Servervariables("REMOTE_ADDR")
or
HttpContext.Current.Request.UserHostAddress;
当他们点击提交时,您如何将表格返回给您?我让它将此数据发布回我的服务器。如果你这样做,当帖子进来时,你就可以在服务器端获取IP。如果提交按钮将其通过电子邮件发回给你,我不知道。
When they hit submit how are you returning the form to you? I had it POST this data back to my server. If you do it that way you can just get the IP on the server side when the post comes in. If the submit button emails it back to you I don't know.