student wrote:

Hi I had somthing like the following in my code which almost works but code
use debugging!

<tr bgcolor=" <? IF(?page!="home") { print("#006633") ; }
                    elseif (?page!="compose") { print("#009966") ; }
                    elseif (?page!="Registration") {print("#CC0033") ;}">
<td><td/>
<tr/>

But what would happen a totally different colour would show

Please don't top post.


What you need is
<tr bgcolor=" <? if($_GET['page']!="home") { print("#006633") ; }
elseif ($_GET['page']!="compose") { print("#009966") ; }
elseif ($_GET['page']!="Registration") {print("#CC0033") ;}">
<td><td/>
<tr/>



-- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ----------------------- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing."

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to