<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1028844" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1028844</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hi-allwhat#comment-1169833</link>
    <description> &lt;p&gt;Hiya,&lt;/p&gt;
&lt;p&gt;I have just answered a question very similar to this in the thread &#039;Ready to move from html - php site...how?&#039;. Please take a look at that for a VERY simple explanation.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Andy - &lt;a href=&quot;http://www.heartsaffection.com&quot; class=&quot;bb-url&quot;&gt;http://www.heartsaffection.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 21 Apr 2005 06:46:42 +0000</pubDate>
 <dc:creator>heartsaffection</dc:creator>
 <guid isPermaLink="false">comment 1169833 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hi-allwhat#comment-1169362</link>
    <description> &lt;p&gt;thank you all. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Apr 2005 04:04:58 +0000</pubDate>
 <dc:creator>naoshad</dc:creator>
 <guid isPermaLink="false">comment 1169362 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hi-allwhat#comment-1169355</link>
    <description> &lt;p&gt;This might help you out. This is the source code of the homepage of my website. You can see it in action at &lt;a href=&quot;http://assassin.cjb.cc&quot; class=&quot;bb-url&quot;&gt;http://assassin.cjb.cc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Assassin Band&lt;br /&gt;
&amp;lt;?PHP&lt;br /&gt;
/* here I&#039;m simply including a CSS file. it&#039;s got nothing to do with your question */&lt;br /&gt;
 include(&quot;http://assassin.cjb.cc/assassin.css&quot;);&lt;/p&gt;
&lt;p&gt;/* Here&#039;s where it starts to get interesting. This if then thing tells my page that if there is nothing in the &quot;Query string&quot; which is the ?u=10145 in your question that my variable $Pagename should be set to home */&lt;br /&gt;
if($_SERVER[&#039;QUERY_STRING&#039;]==NULL){&lt;br /&gt;
   $Pagename=home;&lt;br /&gt;
   }&lt;br /&gt;
// This gets the query string if there is one&lt;br /&gt;
else{&lt;br /&gt;
   /* My URL always comes as http://assassin.cjb.cc?$Pagename=whatever. All I want is the whatever, so first I make an array that contains 2 pieces: 1)http://assassin.cjb.cc?$Pagename= and 2) whatever */&lt;br /&gt;
   $Query = explode(&quot;=&quot;, $_SERVER[&#039;QUERY_STRING&#039;]);&lt;br /&gt;
   // this sets my variable $Pagename to the whatever that I got before&lt;br /&gt;
   $Pagename=$Query[1];&lt;br /&gt;
} ?&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://assassin.cjb.cc&quot;&gt;&lt;img src=&quot;pics/assassinbanner.JPG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li id=&quot;tab_web&quot; class=&quot;active_web&quot;&gt;
&lt;p&gt;&amp;lt;?PHP if($Pagename==&quot;home&quot;){   print(&quot;&lt;br /&gt;
&lt;li class=&quot;active_home&quot;&gt;&quot;); } else{ print(&quot;&lt;br /&gt;
&lt;/li&gt;&lt;li class=&quot;srch_litext&quot;&gt;&quot;); } ?&amp;gt;&lt;/li&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class=&quot;srch_blue&quot; href=&quot;?$Pagename=home&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Home&lt;/p&gt;&lt;/li&gt;
&lt;p&gt;&amp;lt;?PHP if($Pagename==&quot;bios&quot;){   print(&quot;&lt;br /&gt;
&lt;li class=&quot;active_home&quot;&gt;&quot;); } else{ print(&quot;&lt;br /&gt;
&lt;/li&gt;&lt;li class=&quot;srch_litext&quot;&gt;&quot;); } ?&amp;gt;&lt;a class=&quot;srch_blue&quot; href=&quot;?$Pagename=bios&quot;&gt;Bios&lt;/a&gt;&lt;/li&gt;
&lt;/p&gt;&lt;p&gt;&amp;lt;?PHP if($Pagename==&quot;book&quot;){   print(&quot;&lt;br /&gt;
&lt;li class=&quot;active_home&quot;&gt;&quot;); } else{ print(&quot;&lt;br /&gt;
&lt;/li&gt;&lt;li class=&quot;srch_litext&quot;&gt;&quot;); } ?&amp;gt;&lt;a class=&quot;srch_blue&quot; href=&quot;?$Pagename=book&quot;&gt;Book Us&lt;/a&gt;&lt;/li&gt;
&lt;/p&gt;&lt;p&gt;&amp;lt;?PHP if($Pagename==&quot;originals&quot;){   print(&quot;&lt;br /&gt;
&lt;li class=&quot;active_home&quot;&gt;&quot;); } else{ print(&quot;&lt;br /&gt;
&lt;/li&gt;&lt;li class=&quot;srch_litext&quot;&gt;&quot;); } ?&amp;gt;&lt;a class=&quot;srch_blue&quot; href=&quot;?$Pagename=originals&quot;&gt;Original&lt;br /&gt;
Songs&lt;/a&gt;&lt;/li&gt;
&lt;/p&gt;&lt;p&gt;&amp;lt;?PHP if($Pagename==&quot;covers&quot;){   print(&quot;&lt;br /&gt;
&lt;li class=&quot;active_home&quot;&gt;&quot;); } else{ print(&quot;&lt;br /&gt;
&lt;/li&gt;&lt;li class=&quot;srch_litext&quot;&gt;&quot;); } ?&amp;gt;&lt;a class=&quot;srch_blue&quot; href=&quot;?$Pagename=covers&quot;&gt;Song Arsenal&lt;/a&gt;&lt;/li&gt;
&lt;/p&gt;&lt;p&gt;&amp;lt;?PHP if($Pagename==&quot;past&quot;){   print(&quot;&lt;br /&gt;
&lt;li class=&quot;active_home&quot;&gt;&quot;); } else{ print(&quot;&lt;br /&gt;
&lt;/li&gt;&lt;li class=&quot;srch_litext&quot;&gt;&quot;); } ?&amp;gt;&lt;a class=&quot;srch_blue&quot; href=&quot;?$Pagename=past&quot;&gt;Past Shows&lt;/a&gt;&lt;/li&gt;
&lt;/p&gt;&lt;p&gt;&amp;lt;?PHP if($Pagename==&quot;shows&quot;){   print(&quot;&lt;br /&gt;
&lt;li class=&quot;active_home&quot;&gt;&quot;); } else{ print(&quot;&lt;br /&gt;
&lt;/li&gt;&lt;li class=&quot;srch_litext&quot;&gt;&quot;); } ?&amp;gt;&lt;a class=&quot;srch_blue&quot; href=&quot;?$Pagename=shows&quot;&gt;Future Shows&lt;/a&gt;&lt;/li&gt;
&lt;/p&gt;&lt;/ul&gt;
&lt;p&gt;&amp;lt;?PHP&lt;br /&gt;
/* This sets my page. all of the code above just sets my tabs and my header. this is where the real action is. I have all of my pages set up so that they can be linked to in this matter. */&lt;br /&gt;
 include(&quot;http://www.cjb.cc/members/assassin/&quot; . $Pagename . &quot;.html&quot;); ?&amp;gt;&lt;/p&gt;
&lt;p&gt;I really hope this helped. The code can be a little overwhelming at first, but I think you should be able to get it.&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Apr 2005 02:17:35 +0000</pubDate>
 <dc:creator>Assassin</dc:creator>
 <guid isPermaLink="false">comment 1169355 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hi-allwhat#comment-1169344</link>
    <description> &lt;p&gt;Well, there&#039;s nothing to comment in here. Only switch instruction, $_GET - that&#039;s the array which store your variables given via GET method ( example.php?where=first - this is GET method - where will be stored in $_GET[&#039;where&#039;]), isset - checks if variable exists or not.&lt;/p&gt;
&lt;p&gt; That&#039;s all. If u don&#039;t understand it - sorry, start learning PHP...&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Apr 2005 17:03:49 +0000</pubDate>
 <dc:creator>pitbull82</dc:creator>
 <guid isPermaLink="false">comment 1169344 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hi-allwhat#comment-1169343</link>
    <description> &lt;p&gt;thanks a lot for your reply.&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Apr 2005 16:58:45 +0000</pubDate>
 <dc:creator>naoshad</dc:creator>
 <guid isPermaLink="false">comment 1169343 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hi-allwhat#comment-1169342</link>
    <description> &lt;p&gt;it will be very helpful if you ilaborate the code. i mean if you make comments in every line where necessary. &lt;/p&gt;
&lt;p&gt;Naoshad&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Apr 2005 16:57:31 +0000</pubDate>
 <dc:creator>naoshad</dc:creator>
 <guid isPermaLink="false">comment 1169342 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/hi-allwhat#comment-1169340</link>
    <description> &lt;p&gt;It&#039;s a variable and its value which helps you to manage your site.&lt;/p&gt;
&lt;p&gt;   Simple example. Save it as &lt;strong&gt;example.php&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;   &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!--&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Here we have content of the site&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;--&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; if (isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;where&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;where&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; switch (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$where&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;first&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Here&#039;s the content of the first article. (You could use include funcion here)\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case &#039;second&#039;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;Here&#039;s the content of the second article. (You could use include funcion here)\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case &#039;third&#039;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;Here&#039;s the content of the third article. (You could use include funcion here)\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;Here&#039;s the main page (or there was bad value of where). (You could use include funcion here)\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;ul&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=\&quot;example.php?where=first\&quot;&amp;gt;First link&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=\&quot;example.php?where=second\&quot;&amp;gt;Second link&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=\&quot;example.php?where=third\&quot;&amp;gt;Third link&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/html&amp;gt;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;   Hope that&#039;s useful for you &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Apr 2005 11:27:08 +0000</pubDate>
 <dc:creator>pitbull82</dc:creator>
 <guid isPermaLink="false">comment 1169340 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
