Re: refresh PHP page via onclick event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 1:40 PM +0200 4/15/06, Alain Roger wrote:
Hi,

Sorry to look like stupid for some of you, but i'm still not able to link to
link (<a> </a>) or to a button via onclick event) the refresh of my page.

i've check META tag and also $PHP_SELF variable, but it does not work.

here is what i would like to do.

i have 1 PHP page on which i have 3 flags (3 images)
if user click on 1 of these flags, $_SESSION['Localization'] is set up to
flag language and the page must be refreshed.

thanks a lot for some help or tutorials.

Alain

Alain:

Try this:

http://www.sperling.com/examples/styleswitch/

The demo jumps from one style sheet to another, but with a little alteration it could be expanded to solve your problem. It also stores the user preference in a cookie -- you probably want that as well.

However, it does use a POST in the operation, BUT the switch is so fast that the user usually doesn't see it added to the url. Try the above link and see for yourself.

HTH's

tedd

--
--------------------------------------------------------------------------------
http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux