hi
here is my code for the question first:
PHP Code:
fwrite($handle,'<tr><th>county_UA</th><th>pop_code</th><th>favourite_instrument</th> <th>bbb</th><th>id</th><th>fruit</th><th>prizes</th><th>fguk_code</th><th>fgeu_code</th></tr>'."\n");
this codes writes the rows for the table which looks like this:
[HTML]
<table id="tab" border="5">
<tr><th>county_UA</th><th>pop_code</th><th>favourite_instrument</th> <th>bbb</th><th>id</th><th>fruit</th><th>prizes</th><th>fguk_code</th>
<th>fgeu_code</th></tr>
[/HTML]
is there way using sessions could do this according to the value of sessions:
so a session value contains county_ua it will write <th>county_UA</th>.
i have done similar but it works fine but not for this:
PHP Code:
if (isset($_SESSION['checkbox2'])) {
fwrite($handle,'<td><xsl:value-of select="county_UA"/></td>'."\n");
}
if (isset($_SESSION['checkbox3'])) {
fwrite($handle,'<td><xsl:value-of select="pop_code"/></td>'."\n");
}
if (isset($_SESSION['checkbox4'])) {
fwrite($handle,'<td><xsl:value-of select="favourite_instrument"/></td>'."\n");
}
this basicaly says if the session checkbox4 contains that value print or write this code.
something similar to that would be great.
thanks for the time