simple setup for allowing visitors to choose their country
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

simple setup for allowing visitors to choose their country

From: Nicole <nickywebsterjohns@yahoo.co.uk>
Date: Mon Oct 24 2005 - 23:31:41 CEST

Hi

I need to be able to change the currency and some form fields displayed on
my website depending on where the visitor is based. I don't need a fully
functional cart, just a kinda either display '$10' or '£7' sort of thing!

I was planning on having a map on my opening screen with hotspots over the
countries. On the links for the hot spots I was planning to have something
like href="functions.php?FuncToExec=countrySelectUS"> in the functions.php i
was going to set a session variable to the country ie 'US' and then
automatically move to my normal page. Then in my forms etc I was planning on
using if statements to select price etc.

This seems rather long winded! Is it the right way to do it?
Thanks for any help given
NO

 
Received on Mon Nov 21 02:48:56 2005