close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


How to get the Contact Form Script to add the IP of the user to the email body?

Thread began 4/20/2010 9:38 am by a.champion405576 | Last modified 5/26/2014 1:23 pm by Salah Heddad | 1870 views | 3 replies |


How to get the Contact Form Script to add the IP of the user to the email body?


I just bought the Contact Form and I am pleased to recommend it. It is fantastic. I have added new fields, validated them in every sense, just like the originals, and everything is working fine. I even deleted the weekdays-questions from the script because I think visitors from other countries would have trouble spelling Wedndesdady :).

However, in my current HTML form, I have this line:


which returns some information about the user, such as their IP.

Could anyone please please tell me how to add this line to my PHP form, so that the Contact Form returns the IP, the server, the referer, etc.

Thank you in advance for your kind support.

Sign in to reply to this post

Jason ByrnesWebAssist

code you hidden element like this:

<input type="hidden" name="env_report" value="REMOTE_HOST: <?php echo((isset($_SERVER["REMOTE_HOST"]))?$_SERVER["REMOTE_HOST"]:""?>,HTTP_USER_AGENT: <?php echo((isset($_SERVER["HTTP_USER_AGENT"]))?$_SERVER["HTTP_USER_AGENT"]:""?>,REMOTE_ADDR: <?php echo((isset($_SERVER["REMOTE_ADDR"]))?$_SERVER["REMOTE_ADDR"]:""?>,HTT P_REFERER: <?php echo((isset($_SERVER["HTTP_REFERER"]))?$_SERVER["HTTP_REFERER"]:""?>,DOCUMENT_ROOT: <?php echo((isset($_SERVER["DOCUMENT_ROOT"]))?$_SERVER["DOCUMENT_ROOT"]:""?>,SERVER_NAME: <?php echo((isset($_SERVER["SERVER_NAME"]))?$_SERVER["SERVER_NAME"]:""?>">
Sign in to reply to this post



Thank you Jason for your speedy reply.

Sign in to reply to this post

Salah Heddad

Thanks as always

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...