Reply to Re: simple setup for allowing visitors to choose their country

Your name:

Reply:


Posted by John Bokma on 10/25/05 00:44

"Nicole" <nickywebsterjohns@yahoo.co.uk> wrote:

> 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!

How many currencies?

> I was planning on having a map on my opening screen with hotspots over
> the countries.

World map? Are you going to support them all? Is every visitor able to find
his/her country on this map?

> 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.

php -> use a hash with the key the currency code, and the value the
conversion rate. If the key is undefined, report "bad currency", don't fix
it to a default (you might overlook a bug that way).

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация