php mail form not sending ip address and refer data and email address of responder

They have: 1 posts

Joined: Feb 2009

i have the same problem that this guy had who posted in the forum ...

I am wondering what this means... is the the index.html of the site ...

you are correct, I changed my index.html to .php and now it works Laughing out loud...I get IP browser, and refer data in my email also.

here is the what i think you may need to help me out

Date:

<?php
echo $todayis
?>

Thank You :

<?php
echo $visitor
?>
(
<?php
echo $visitormail
?>
)

Attention:

<?php
echo $attn
?>

Message:

<?php
$notesout
= str_replace("\r", "<br/>", $notes);
echo
$notesout;
?>

<?php
echo $ip
?>

Next Page

i have changed this page to php and everything works except the ip address and other

----------------------------------------------------------
below is what i get at the bottom of the mail from visitors

Additional Info : IP =

<?php
echo $ipi
?>

Browser Info:

<?php
echo $httpagenti
?>

Referral :

<?php
echo $httprefi
?>

thanks
pmay

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

First, let's display all your code (you need to enclose it in code tags, third icon from the right in the toolbar)

<p align="center">
Date: <?php echo $todayis ?>
<br />
Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
<br />

Attention: <?php echo $attn ?>
<br />
Message:<br />
<?php $notesout = str_replace("\r", "<br/>", $notes);
echo
$notesout; ?>

<br />
<?php echo $ip ?>

<br /><br />
<a href="http://pca.info/contactus.htm"> Next Page </a>
</p>

</body>
</html>

i have changed this page to php and everything works except the ip address and other

----------------------------------------------------------
below is what i get at the bottom of the mail from visitors

Additional Info : IP =

<?php
echo $ipi
?>

Browser Info:

<?php
echo $httpagenti
?>

Referral :

<?php
echo $httprefi
?>

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

I do not see where you set the values of these variables

try

$ipi = $_SERVER["REMOTE_ADDR"];

$httpagenti =  $_SERVER["HTTP_USER_AGENT"];

$httprefi = $HTTP_REFERER;

if you also want to get the host name for that IP address, use

@gethostbyaddr($_SERVER["REMOTE_ADDR"]);

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.