|
Posted by Jerry Stuckle on 09/27/07 12:56
shror wrote:
> On Sep 26, 10:21 pm, macca <ptmcna...@googlemail.com> wrote:
>> Me thinks you need to read up a bit on php. Tryhttp://w3schools.com/php/default.asp
>>
>> $language = 'Arabic';
>>
>> if ($language == 'Arabic'){
>>
>> echo "<html><head><title>Some HTML and Arabic stuff</title></head>";
>>
>> } elseif ($language == 'English'){
>>
>> echo "<html><head><title>Some HTML and English stuff</title></head>";
>>
>> } else {
>>
>> echo "You must choose a Language";
>>
>> }
>>
>> Regards,
>>
>> Paul
>
> I tried your example Paul and It worked great I really feel as dumb
> but I have a small problem I don't know why it happened, I have
> created a page using notepad and saved it .php and Unicode, but when I
> tested it online it was not working so I Saved it as ANSI and tested
> it once more and the code worked correctly why is this happening
>
> Thanks for help in advance and the previous help too
>
> shror
>
Maybe because PHP is an ANSI language?
You don't need to save a file as unicode to send unicode to the browser.
And, in fact, if you do, you'll get other problems.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|