thanks
well here it is, i have the the code to write the lines for the fields chosen in the index page from the first set of check boxes.
PHP Code:
if (isset($_SESSION['checkbox2'])) {
fwrite($handle,'<th>county_UA</th>'."\n");
}
if (isset($_SESSION['checkbox3'])) {
fwrite($handle,'<th>pop_code</th>'."\n");
}
if (isset($_SESSION['checkbox4'])) {
fwrite($handle,'<th>favourite_instrument</th>'."\n");
}
if (isset($_SESSION['checkbox5'])) {
fwrite($handle,'<th>bbb</th>'."\n");
}
if (isset($_SESSION['checkbox6'])) {
fwrite($handle,'<th>id</th>'."\n");
}
if (isset($_SESSION['checkbox7'])) {
fwrite($handle,'<th>fruit</th>'."\n");
}
if (isset($_SESSION['checkbox8'])) {
fwrite($handle,'<th>prizes</th>'."\n");
}
if (isset($_SESSION['checkbox9'])) {
fwrite($handle,'<th>fguk_code</th>'."\n");
}
if (isset($_SESSION['checkbox10'])) {
fwrite($handle,'<th>fgeu_code</th>'."\n");
}
fwrite($handle,'</tr>'."\n");
this basicaly produces
[HTML]<td><xsl:value-of select="county_UA"/></td>
<td><xsl:value-of select="pop_code"/></td>
<td><xsl:value-of select="favourite_instrument"/></td>
<td><xsl:value-of select="bbb"/></td>
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="fruit"/></td>
<td><xsl:value-of select="prizes"/></td>
<td><xsl:value-of select="fguk_code"/></td>
<td><xsl:value-of select="fgeu_code"/></td[/HTML]
this displays all the fields data, perfect
now, i have another set of check boxes and radio buttons for the colour for the fields
[HTML] <fieldset>
<legend>Colours 1</legend>
<input type="radio" name="radiobutton1" value="chocolate" />chocolate
<input type="radio" name="radiobutton1" value="forestgreen" />forestgreen
<input type="radio" name="radiobutton1" value="turquoise" />turquoise
<br />
<input type="checkbox" name="checkbox11" value="county_UA" />county_UA
<input type="checkbox" name="checkbox12" value="pop_code" />pop_code
<input type="checkbox" name="checkbox13" value="favourite_instrument" />favourite_instrument
<input type="checkbox" name="checkbox14" value="bbb" />bbb
<input type="checkbox" name="checkbox15" value="id" />id
<input type="checkbox" name="checkbox16" value="fruit" />fruit
<input type="checkbox" name="checkbox17" value="prizes" />prizes
<input type="checkbox" name="checkbox18" value="fguk_code" />fguk_code
<input type="checkbox" name="checkbox19" value="fgeu_code" />fgeu_cod
</fieldset>[/HTML]
so if the user wants the fields or a particular field in a colout you can do so, how do i do this basicaly to any part of the code.
so in another words if the user wants to see these fields ID, FRUIT, PRIZES in the colour turquoise you could choose so, and all these values are stored in sessions.
PHP Code:
$_SESSION['firsttextbox'] = $_POST['firsttextbox'];
$_SESSION['checkbox0'] = $_POST['checkbox0'];
$_SESSION['checkbox1'] = $_POST['checkbox1'];
$_SESSION['checkbox2'] = $_POST['checkbox2'];
$_SESSION['checkbox3'] = $_POST['checkbox3'];
$_SESSION['checkbox4'] = $_POST['checkbox4'];
$_SESSION['checkbox5'] = $_POST['checkbox5'];
$_SESSION['checkbox6'] = $_POST['checkbox6'];
$_SESSION['checkbox7'] = $_POST['checkbox7'];
$_SESSION['checkbox8'] = $_POST['checkbox8'];
$_SESSION['checkbox9'] = $_POST['checkbox9'];
$_SESSION['checkbox10'] = $_POST['checkbox10'];
$_SESSION['checkbox11'] = $_POST['checkbox11'];
$_SESSION['checkbox12'] = $_POST['checkbox12'];
$_SESSION['checkbox13'] = $_POST['checkbox13'];
$_SESSION['checkbox14'] = $_POST['checkbox14'];
$_SESSION['checkbox15'] = $_POST['checkbox15'];
$_SESSION['checkbox16'] = $_POST['checkbox16'];
$_SESSION['checkbox17'] = $_POST['checkbox17'];
$_SESSION['checkbox18'] = $_POST['checkbox18'];
$_SESSION['checkbox19'] = $_POST['checkbox19'];
$_SESSION['checkbox20'] = $_POST['checkbox20'];
$_SESSION['checkbox21'] = $_POST['checkbox21'];
$_SESSION['checkbox22'] = $_POST['checkbox22'];
$_SESSION['checkbox23'] = $_POST['checkbox23'];
$_SESSION['checkbox24'] = $_POST['checkbox24'];
$_SESSION['checkbox25'] = $_POST['checkbox25'];
$_SESSION['checkbox26'] = $_POST['checkbox26'];
$_SESSION['checkbox27'] = $_POST['checkbox27'];
$_SESSION['checkbox28'] = $_POST['checkbox28'];
$_SESSION['checkbox29'] = $_POST['checkbox29'];
$_SESSION['radiobutton'] = $_POST['radiobutton'];
$_SESSION['radiobutton1'] = $_POST['radiobutton1'];
$_SESSION['radiobutton2'] = $_POST['radiobutton2'];
$_SESSION['range1'] = $_POST['range1'];
$_SESSION['range2'] = $_POST['range2'];
is that possible?