Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-06-2006, 06:43 AM   #1
Registered: Oct 2005
Location: london
Distribution: fedora 4
Posts: 61

Rep: Reputation: 15
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

PHP Code:
<div id="h">
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="">
<xsl:template match="/">
<html xmlns="" xml:lang="en">
<link rel="stylesheet" type="text/css" href="first.css"/>
<link rel="stylesheet" type="text/css" href="second.css"/>
<body id="content">

<h1>Joint Wes_ica Tables</h1>
<table border="5">

<xsl:for-each select="newdata/data1">
<xsl:sort select="prizes"/>
<td><xsl:value-of select="green"/></td>




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 06:44 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 12:37 PM
appending data to a data grid mrobertson Programming 6 07-28-2005 09:57 AM
mod_python: Sending data to a redirect page nko Programming 1 04-12-2005 06:23 PM
Home Office Biotech Data Mining - Data Collection Adler Linux - General 20 11-03-2004 05:17 AM
Burn Data DVD... Read Data in Linux and Windows SaintStrive Linux - Newbie 3 09-18-2004 06:04 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration