Jump to content

IP address on the contact us page


mark1million

Recommended Posts

  • Moderators

Can anyone offer some help,

I want to capture the ipaddress of anyone that uses the contact us form (contact_form.tpl) i have added the following to the form but do i need to modify the contact.php code in the modules folder as well?

<input name="ip" type="hidden" value="<?PHP echo $_SERVER['REMOTE_ADDRESS']; ?>">

All that is displayed in the mail currently is -ip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...