Re: Multi Language + php
Hi eliteclub,
here is the code you need (I also added date and browser information)
// Find Server date and Time
$date = date("l jS F Y, g:i A");
// Find Browser and IPaddress
$browser =$_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['REMOTE_ADDR'];
You must add this code just at the second line of the script.
Then to insert the information in the body of your email, add the following lines at the end of the mail body creation part (you will see it immediately because it has the same format):
. "---------------------------------------\n"
. "Date and Server time of submission: $date\n"
. "Browser : $browser\n"
. "IP address : $ip\n";
Hope everything works out fine
Have a nice Xmas
Originally posted by eliteclub
here is the code you need (I also added date and browser information)
// Find Server date and Time
$date = date("l jS F Y, g:i A");
// Find Browser and IPaddress
$browser =$_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['REMOTE_ADDR'];
You must add this code just at the second line of the script.
Then to insert the information in the body of your email, add the following lines at the end of the mail body creation part (you will see it immediately because it has the same format):
. "---------------------------------------\n"
. "Date and Server time of submission: $date\n"
. "Browser : $browser\n"
. "IP address : $ip\n";
Hope everything works out fine
Have a nice Xmas
Comment