Re: Cell Colour Change!!! HELP
| From: | Burhan Khalid | Date: | Fri, 07 Nov 2003 19:27:55 +0000 |
| Subject: | Re: Cell Colour Change!!! HELP | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168888@lists.php.net to get a copy of this message | ||
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."