You are here: Re: simple setup for allowing visitors to choose their country « PHP Programming Language « IT news, forums, messages
Re: simple setup for allowing visitors to choose their country

Posted by www.1-script.com on 10/25/05 01:14

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


I think the right way to do that would be using the GeoIP PHP API:

http://www.maxmind.com/app/php

This way you don't have to ask, just give them the custom layout based on
their IP Address. Not without its limitations, but think about
human-induced error factor: it is highly unlikely that you will get an
honest answer from a visitor coming from Russia, India, China or any other
place that online retailers don't like much. They know for the fact that
they will be treated badly and maybe even denied access to the site, so
why bother answering this question honestly? It's so easy to just pick
U.S.A. from the list you've provided.

--
Cheers,
Dmitri
See Site Sig Below
-------------------------------------



--
##-----------------------------------------------##
Article posted with Web Developer's USENET Archive
http://www.1-script.com/forums
Web and RSS gateway to your favorite newsgroup -
alt.comp.lang.php,alt.php,alt.www.webmaster,comp.lang.php - messages and counting!
##-----------------------------------------------##

 

Navigation:

[Reply to this 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация