Click to See Complete Forum and Search --> : need help w/php guestbook!!!
jefbenet
08-26-2003, 12:57 AM
i'm using a php guestbook script on a website i admin for our city's volunteer fire department. recently we found it necessary to try and log more information with the new guestbook submissions, specifically the senders ip address. the guestbook is at www.flatwoodsfire.com/guestbook/mainbook.php. feel free to take a look. i want it to be transparent to the end user and would like to just submit it with the notification e-mail the script sends when a new entry is submitted. any help would be greatly appreciated. thanks for your consideration.
brendandonhue
08-26-2003, 05:52 AM
Open ardguest.php.
Find this line
mail($admin_email,$msgtitle,$msgcontent,"From: $vemail\n");
Add before it:
$msgcontent .= "/nIP Address: $_SERVER['REMOTE_ADDR']/n";
jefbenet
08-26-2003, 01:20 PM
tried that as a seperate line directly above the line you mentioned, didn't send the ip address. i tweaked the line a bit to read more like the line above it:
$msgcontent = "IP Address : $_SERVER['REMOTE_ADDR']\n";
still didn't work. what might i have done wrong? thanks for the help thus far!