LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 15
retreived data and display data upon choice from first page?


hi

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:

html
Code:

<input type="checkbox" name="checkbox2" value="county_UA" />county_UA



php
PHP Code:
<div id="h">
<p>
Colour 2 Chosen : <?php print($_COOKIE['radiobutton2']); ?>
</p>
</div>


that displays the choice to the next page and it works fine.

xsl:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlnssl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<link rel="stylesheet" type="text/css" href="first.css"/>
<link rel="stylesheet" type="text/css" href="second.css"/>
</head>
<body id="content">

<h1>Joint Wes_ica Tables</h1>
<table border="5">
<tr><th>county_UA</th><th>pop_code</th><th>favourite_instrument</th>
<th>bbb</th><th>fruit</th><th>prizes</th><th>fguk_code</th><th>fgeu_code</th></tr>

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

</tr>
</xsl:for-each>

</table>

</body>
</html>
</xsl:template>
</xsl:stylesheet>

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.
 
  


Reply


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 11:37 AM
appending data to a data grid VB.net mrobertson Programming 6 07-28-2005 08:57 AM
mod_python: Sending data to a redirect page nko Programming 1 04-12-2005 05:23 PM
Home Office Biotech Data Mining - Data Collection Adler Linux - General 20 11-03-2004 04:17 AM
Burn Data DVD... Read Data in Linux and Windows SaintStrive Linux - Newbie 3 09-18-2004 05:04 PM


All times are GMT -5. The time now is 09:21 AM.

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