¿

y de esta forma no te funciona?
Código php:
Ver original<?php
$color = ($_GET["color"]=="red"?"lightgreen":"red");
echo "<table><tr><td width='td' height='10' bgcolor='$color'><a href='b.php?color=$color' style='color: white; font-weight: bold;'>$color</a></td></tr></table>";