retreived data and display data upon choice from first page?
i,m slightly stuck, i have in the first page radio and check boxes, upon ur choice this will be displayed in the next page using cookies or sessions.
so for example if you pick green check box and submit the page, it will load the second page with your choice. you choose the colour green. here is is more in detail
The information that was retreived from the first page and then saved into cookis needs to be used on page 3 to choose what elements of the XSL style sheet are to be written to the file.
For example on the third page you would run an if statement to see if the display colour green box was ticked, if not then dont write any of the lines relating to green.
so how do i basicaly do that via php.
here is the codes so far:
<input type="checkbox" name="checkbox2" value="county_UA" />county_UA
Colour 2 Chosen : <?php print($_COOKIE['radiobutton2']); ?>
that displays the choice to the next page and it works fine.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlnssl="http://www.w3.org/1999/XSL/Transform">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<link rel="stylesheet" type="text/css" href="first.css"/>
<link rel="stylesheet" type="text/css" href="second.css"/>
<h1>Joint Wes_ica Tables</h1>
this displays the value from the xml document which under the field or tag green.
so basicaly thats i want to do from the choice in the first page, if i choose to display the green field and yellow field it will do that when i access the xml page or page 3.
if its not clear please by all means let me know i'll try and get into more details.
thanks for your time
Last edited by ati; 05-06-2006 at 05:44 AM.