<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Dynamic Inclusion subpages</title>
	<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/</link>
	<description>Tutorials for your website</description>
	<pubDate>Fri, 05 Sep 2008 22:01:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Christine</title>
		<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-417</link>
		<author>Christine</author>
		<pubDate>Sat, 24 May 2008 04:03:20 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-417</guid>
		<description>WAIT! I get it now. Thank you so much for this tutorial!</description>
		<content:encoded><![CDATA[<p>WAIT! I get it now. Thank you so much for this tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christine</title>
		<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-416</link>
		<author>Christine</author>
		<pubDate>Sat, 24 May 2008 02:28:41 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-416</guid>
		<description>I'm confused. Where does the content to our page go in the code?</description>
		<content:encoded><![CDATA[<p>I&#039;m confused. Where does the content to our page go in the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valor</title>
		<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-255</link>
		<author>Valor</author>
		<pubDate>Tue, 13 Nov 2007 22:30:35 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-255</guid>
		<description>Hey Clara I'm having the same problem. The subpages dont seem to be loading. And I'm using  PHP 5.2.4. I will I upload to see if you can figure out what the problem is. I've tried your system and this:

?php

if (isset($_GET['id'])) $PAGE = $_GET['id'];

else $PAGE = 'home';

switch ($PAGE) {
//--Index
case 'home':include ('home.php');break;

echo "Error 404!The page you request doesn't exist!";
break;
}
?&#62;

Although your inclusion system is more affective, neither one of them seems to be working. I a nooby to php so I'm not really sure about all the keywords.</description>
		<content:encoded><![CDATA[<p>Hey Clara I&#039;m having the same problem. The subpages dont seem to be loading. And I&#039;m using  PHP 5.2.4. I will I upload to see if you can figure out what the problem is. I&#039;ve tried your system and this:</p>
<p>?php</p>
<p>if (isset($_GET[&#039;id&#039;])) $PAGE = $_GET[&#039;id&#039;];</p>
<p>else $PAGE = &#039;home&#039;;</p>
<p>switch ($PAGE) {<br />
//&#8211;Index<br />
case &#039;home&#039;:include (&#039;home.php&#039;);break;</p>
<p>echo &#034;Error 404!The page you request doesn&#039;t exist!&#034;;<br />
break;<br />
}<br />
?&gt;</p>
<p>Although your inclusion system is more affective, neither one of them seems to be working. I a nooby to php so I&#039;m not really sure about all the keywords.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khlodia</title>
		<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-214</link>
		<author>khlodia</author>
		<pubDate>Sat, 15 Sep 2007 16:36:42 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-214</guid>
		<description>Hi  Clara,
Firstly thank you for this invaluable tutorial it has helped me alot.  
The subpages work fine, but I would like to integrate this into an existing page I have called News.php which by using the dynamic inclusion, the contents are placed in index.php as follows: index.php?action=news
From there one has the option to view comments from the entries listed.  Currently, the link is &lt;code&gt;
"&#60;a href=\"individual_entry.php?id=".$id. "\"&#62;Leave a comment&#60;/a&#62;";
&lt;/code&gt;
 which means  that when the link is clicked it takes the user to a new page. What I’d like to understand, is , if it is possible, to use the sub pages to load the individual entry in the  same content area. 
So far I have tried with no success: 
&lt;code&gt;
href=\"index.php?action=individual_entry.php?id=".$id. "\"&#62;Leave a comment&#60;/a&#62;";
&lt;/code&gt;which loads the index page but no content
&lt;code&gt;
"&#60;a href=\"index.php?action=individual_entry.php&#38;x=id=".$id. "\"&#62;Leave a comment&#60;/a&#62;"; 
&lt;/code&gt; 
same as latter
&lt;code&gt;
&lt;code&gt;
"&#60;a href=\"index.php?action=individual_entry&#38;x=id=".$id. "\"&#62;Leave a comment&#60;/a&#62;"; 
&lt;/code&gt;&lt;/code&gt;
which gives an “Invalid ID specified ”
&lt;code&gt;
"&#60;a href=\"index.php?action=individual_entry&#38;x=individual_entry?id=".$id. "\"&#62;Leave a comment&#60;/a&#62;"; 
&lt;/code&gt;
same as latter
I’d be very obliged if you can advise me on this. 
Thanks again</description>
		<content:encoded><![CDATA[<p>Hi  Clara,<br />
Firstly thank you for this invaluable tutorial it has helped me alot.<br />
The subpages work fine, but I would like to integrate this into an existing page I have called News.php which by using the dynamic inclusion, the contents are placed in index.php as follows: index.php?action=news<br />
From there one has the option to view comments from the entries listed.  Currently, the link is <code><br />
"&lt;a href=\"individual_entry.php?id=".$id. "\"&gt;Leave a comment&lt;/a&gt;";<br />
</code><br />
 which means  that when the link is clicked it takes the user to a new page. What I’d like to understand, is , if it is possible, to use the sub pages to load the individual entry in the  same content area.<br />
So far I have tried with no success:<br />
<code><br />
href=\"index.php?action=individual_entry.php?id=".$id. "\"&gt;Leave a comment&lt;/a&gt;";<br />
</code>which loads the index page but no content<br />
<code><br />
"&lt;a href=\"index.php?action=individual_entry.php&amp;x=id=".$id. "\"&gt;Leave a comment&lt;/a&gt;";<br />
</code><br />
same as latter<br />
<code><br />
</code><code><br />
"&lt;a href=\"index.php?action=individual_entry&amp;x=id=".$id. "\"&gt;Leave a comment&lt;/a&gt;";<br />
</code><br />
which gives an “Invalid ID specified ”<br />
<code><br />
"&lt;a href=\"index.php?action=individual_entry&amp;x=individual_entry?id=".$id. "\"&gt;Leave a comment&lt;/a&gt;";<br />
</code><br />
same as latter<br />
I’d be very obliged if you can advise me on this.<br />
Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roxie</title>
		<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-33</link>
		<author>Roxie</author>
		<pubDate>Thu, 23 Aug 2007 22:52:59 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-33</guid>
		<description>Thank you so much! When I uploaded the sample pages, it STILL didn't work, so I figured it must have been something about my version of PHP...so I switched it from version 5.2.2 to 4.4.7. And it worked. :) I didn't see any note on what version of PHP this was supposed to be for, so I was confused.</description>
		<content:encoded><![CDATA[<p>Thank you so much! When I uploaded the sample pages, it STILL didn&#039;t work, so I figured it must have been something about my version of PHP&#8230;so I switched it from version 5.2.2 to 4.4.7. And it worked. :) I didn&#039;t see any note on what version of PHP this was supposed to be for, so I was confused.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clara</title>
		<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-31</link>
		<author>Clara</author>
		<pubDate>Thu, 23 Aug 2007 12:25:00 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-31</guid>
		<description>Hi Roxie, I've uploaded Dynamic Inclusion subpages sample files, you can download the zip and see the codes :) If it still doesn't work, please mail me with your index.php codes and subpages.php codes ^^</description>
		<content:encoded><![CDATA[<p>Hi Roxie, I&#039;ve uploaded Dynamic Inclusion subpages sample files, you can download the zip and see the codes :) If it still doesn&#039;t work, please mail me with your index.php codes and subpages.php codes ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roxie</title>
		<link>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-29</link>
		<author>Roxie</author>
		<pubDate>Thu, 23 Aug 2007 00:52:28 +0000</pubDate>
		<guid>http://pootato.org/tutorials/php/dynamic-inclusion-subpages/#comment-29</guid>
		<description>This just isn't working for me for some reason. :\ I copied it word for word to make sure I wasn't making some dumb typo...but it still doesn't work. I can't seem to find any other tutorials for it online either--all I need is to make the content of several pages in one simple file, but no matter what x value I enter, it just shows the default content.</description>
		<content:encoded><![CDATA[<p>This just isn&#039;t working for me for some reason. :\ I copied it word for word to make sure I wasn&#039;t making some dumb typo&#8230;but it still doesn&#039;t work. I can&#039;t seem to find any other tutorials for it online either&#8211;all I need is to make the content of several pages in one simple file, but no matter what x value I enter, it just shows the default content.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
