Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trackingn IP for Contact US Page


Guest

Recommended Posts

I used the contribution and it's okay, It works, is there another way.

 

I used this html format to return this information

 

 

Form Code Input:

 

<input type="hidden" name="recipient" value="[email protected]" style="font-weight: 700">

<input type=hidden name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT">

<input type="hidden" name="recipient" value="[email protected]">

 

Results HTML:

 

Ip Address changed for obvious reasons

 

REMOTE_HOST: ip24-025-30-244.cox.net

HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

 

When using The Contribution

 

Contribution code is like this:

 

//IP recorder start

$ipaddress = $HTTP_SERVER_VARS["REMOTE_ADDR"];

$ip = "\n\n IP: " . $ipaddress;

$content = $HTTP_POST_VARS['enquiry'];

$content_ip = $content . $ip;

$enquiry = tep_db_prepare_input($content_ip);

//IP recorder end

 

Contribution Results:

 

IP: 24.025.30.244

 

I would like it like the html format to be returned by the contribution, can someone assist me in inserting HTML code to work with the IP Recorder Contribution?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...