acc said:
Very nice clean dot mobi sites - You are one .mobi development machine .....
Hee hee thanks
vcool said:
I will take a look at the script and let you know.
I took a look at a tutorial and found out how to put in font tags but I must have put them in the wrong spot!
Here's what I found:
---------
PART OF TUTORIAL:
As you can see this code contains 4 quotation marks so would confuse the script. Because of this you must add a backslash before each quotation mark to make the PHP script ignore it. The code would change to:
<font face=\"Arial\" color=\"#FF0000\">
</font>
You can now include this in your print statement:
print("<font face=\"Arial\" color\"#FF0000\">Hello and welcome to my website.</font>");
which will make the browser display:
Hello and welcome to my website.
-----------
So I put in the php file:
<?php
if ($scale == "celcius")
{print "<font face=\"Arial\" color=\"#FFFFFF\" size=\"1\"> Conversion Results. $degree celsius"</font>;
$c_2_f = (int) ($degree*9/5+32);
print "<font face=\"Arial\" color=\"#FFFFFF\" size=\"1\">$c_2_f fahrenheit"</font>;
$c_2_k = (int) ($degree+273.15);
print "<font face=\"Arial\" color=\"#FFFFFF\" size=\"1\">$c_2_k kelvin"</font>;
$c_2_r = (int) ($c_2_f+459.6);
print "<font face=\"Arial\" color=\"#FFFFFF\" size=\"1\">$c_2_r rankine"</font>;}
That's just one part. Obviously I have the <font> stuff in the wrong spots!
I am giving it up for tonight. Will try again tomorrow.