I want to detect a users country and depending on what country the user is from i want to send them to a particular page. if the country is not known or not specified in the setting, they should be taken to the default country page.
I have been running around soo many forums and no one can seem to help me, i have no knowledge on perl (just how to install a code and edit) so please can someone help me. plzzzzzzzzzzzzzzzz
your help is much appreciated.
cheers
Linda
I'm sure users will bookmark the page in their own language/for their own country. Otherwise, just provide the default page (index.html) with a menu to choose from.
can we not query and fetch the details from there and what ever the result is we then send the user to the relavant defined page, and if the site doesnt respond for any reason whatsoever then we send the user to the default page?
i really appreciate the help
many thanx
linda
CPAN [cpan.org] is an excellent source of pre written Perl code.
A quick search revealed lots of modules already written to perform this type of task one example being GEO::IP [search.cpan.org].
You will need to download the module of your choice and install it onto your system (or get your ISP to install the module),
and then follow the examples in the documentation.