Tutorial :How to send IP address using PDF Forms and Adobe Acrobat?



Question:

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!!!


Solution:1

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;


Solution:2

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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »