Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.
Moderator: General Moderators
redhair
Forum Contributor
Posts: 300 Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:
Post
by redhair » 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>";
}
?>
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Fri Dec 31, 2004 9:05 am
voor belgie is dat 000-0000012-12 als ik me niet vergis.
evilmonkey
Forum Regular
Posts: 823 Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada
Post
by evilmonkey » Fri Dec 31, 2004 2:36 pm
Yeah, that was a devastating natural disaster. Happy new year to everyone, let's hope 2005 will be free of natural disasters and terrorism....