p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   HTML Code Clinic (http://p2p.wrox.com/forumdisplay.php?f=90)
-   -   Reload "same webpage" in different languages (http://p2p.wrox.com/showthread.php?t=86838)

mike_abc February 29th, 2012 04:57 PM

Reload "same webpage" in different languages
 
Hi,

I want to reload the same (dynamic) page, it's content in several languages, by clicking little flags which are located at a precise, same place on the page - AND ITS NOT WORKING [:(!][:(!] !!

The click triggers a php script which basically says

Code:

$_SESSION['lang'] = <Some_language>;
require ('webpage.php');

where webpage.php is the dynamic page, in succesive languages, with it's content drawn out from the database which contains the content in all languages I chose to display.

Upon start, the webpage is displayed correctly. But when I click the flag which should reload the same page in a different language, lots of contents in the page are missing (pictures, mainly).

And when I look at the page html (View Page Source) - it seems OK !

Mike

qazi_nomi May 23rd, 2013 10:09 AM

you have to check the HTML code of flag and OnClick action.


All times are GMT -4. The time now is 12:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.