Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7010133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:57:07+00:00 2026-05-27T21:57:07+00:00

I have the line of code below in my contact form with the intention

  • 0

I have the line of code below in my contact form with the intention of grabbing the IP address of my visitors via the form. It instead returns the default value. How do I get it to return the visitor’s IP? My Potential clients us the form to contact me but spammers do too.

<input type=hidden name="env_report" value="REMOTE_HOST,REMOTE_ADDR">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:57:08+00:00Added an answer on May 27, 2026 at 9:57 pm

    What exactly do you expect this to do?

    If you want the IP address then look at the client address in the HTTP request the form generates. If the form is dynamically creating an email on the client (i.e. not sending the form data back in an HTTP request) which you want to populate with some values then you’d need to set the values from the code which generates the HTML (javascript doesn’t know about IP addresses) e.g. with PHP….

    <input type=hidden name="env_report" value="<?php print $_SERVER['REMOTE_ADDR']; ?>">
    

    Only it’s trivial for someone to amend the contents of the email unless you also include some tamper detection….

    <input type=hidden name="anti_tamper" value="<?php 
        print md5('s3cr3t' . $_SERVER['REMOTE_ADDR']); 
    ?>">
    

    …and validate on receipt.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the line of code below... How would I modify it to insert
Below I have a line of code where it states which Session a user
I have this line of code below: foreach ($searchResults as $key=>$question) { echo '<tr
I want to have a line of code similar to below: var name =
I have a line of code below which successfully does a trigger when a
I have the following line of code below. Is there a method that can
I have used the line of code below to input a variable for BAI_var1
I have the code below: this.NameComboBox.EditValue = value; I find when value is not
I have following line code in my view: <td> Model.some_instance_method(args) </td> I would like
I have this line of code but it throws an error. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.