[FONT="Trebuchet MS"]Hi
Though not a beginner with scripting, I'm a beginner with PHP, so I guess everyone goes through a phase of asking questions that you know are just mere embarrassment.
I'm writing a page that would have both a Chinese and English version. This is done by declaring a $en variable, and with the following code the content would vary.
PHP code:
<?php if ($en != true) { ?>
[ Chinese Content ]
<?php } else { ?>
[ English Content ]
<?php }
echo $en;
?>
The file would be called as
index.php?en=1
if the user was to click on the "English" link.
As far as I know, this should create a variable $en, and set it as 1, which would be usable throughout the script, no? However, I can't get it working. The "echo $en;" at the bottom of the script was to check the value of $en, but nothing's showing as if the variable is not created.
Is this a syntax error? Or is there something else I should know?[/FONT]