Happy new year!
Posted: Fri Dec 31, 2004 7:31 am
Let's start of the right way, and put this code in your site.
Code: Select all
<?php
$lang = explode(",", getenv("HTTP_ACCEPT_LANGUAGE"));
$lang = strtolower($lang[0]);
if (preg_match("/nl/i", $lang))
{
//Dutch donations
print "Steun Azie: <a href='http://www.giro555.nl/' target='_blank'>Giro555</a> ";
}
else
{
//International donations
print "Help Asia recover from the tsunami: <a href='http://www.google.com/tsunami_relief.html' target='_blank'>Donate!</a>";
}
?>