hi all
at the momeny i have this statement, which writes:
PHP Code:
if (isset($_SESSION['checkbox10'])) {
fwrite($handle,'<td><xsl:value-of select="fgeu_code"/></td>'."\n");
}
this writes:
[HTML]<td><xsl:value-of select="county_UA"/></td>[/HTML]
i want be able to add back colour to the td and i have this so far which writes the statement:
PHP Code:
if (isset($_SESSION['radiobutton1']))
{
if ($_SESSION['radiobutton1'] == 'chocolate')
$colour = "#D2691E";
elseif ($_SESSION['radiobutton1'] == 'forestgreen')
$colour = "#228B22";
elseif ($_SESSION['radiobutton1'] == 'turquoise')
$colour = "#00DED1";
}
if (isset($_SESSION['checkbox11']))
fwrite($handle,"<td bgcolor=\"$colour\"><xsl:value-of select=\"county_UA\"/></td>"."\n");
this writes:
[HTML]<td bgcolor="#D2691E"><xsl:value-of select="county_UA"/></td>[/HTML]
i want to be able just to modify the exisiting line above but with out writing the entire code so it will only add the [HTML]bgcolor="#D2691E[/HTML]
so it will look like something like this i think:
PHP Code:
fwrite($handle,<td bgcolor= fwrite($handle,"$colour\"><xsl:value-of select=\"county_UA\"/></td>"."\n");
so it will write the line and if the colour is requested it will add the bkground colour.
is that possible?
here is a picture to see what i mean!
http://img166.imageshack.us/my.php?i...titled28eq.gif
thanks all