I have a feedback form to collect my visitor's comments on the site. How do I also get information about the IP address. This is my php code
$msg = "E-MAIL SENT FROM $email\n";
$msg .= "Sender's Name: $name\n";
$msg .= "Sender's E-Mail: $email\n";
$msg .= "Sender's Address: $place\n";
$msg .= "Message: $comments\n\n";
$date = date("m/d/Y H:i:s");
$visitor_IP = $GLOBALS['REMOTE_ADDR'];
$_SERVER['REMOTE_ADDR']
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
I get the first four information but not the date and Ip address. What is wrong with my code. Can anybody help.
Thanks