Jump to content

if then question


gaz_hayes

Recommended Posts

OK, I am really new and naive to php so please be nice!

 

I am running a moderately popular php shopping cart script

 

The use global language variables in the site, so I was hoping to detect the language, and show my custom pages in that language.

 

I'm using iframes to show my custom content.

 

So I need to do something like this (but in php of course  :-[)

 

if 'language_variable' = 'english' then echo '<iframe src="content_en.html" />;
if 'language_variable' = 'chinese_simp' then echo '<iframe src="content_zh_cn.html" />;
if 'language_variable' = 'chinese_trad' then echo '<iframe src="content_zh_tw.html" />;
if 'language_variable' = 'japanese' then echo '<iframe src="content_jp.html" />;

 

I think this should be pretty simple right? If I knew some basic PHP :(

Link to comment
https://forums.phpfreaks.com/topic/67774-if-then-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.