<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Basic of $_GET variables (PHP)</title>
	<atom:link href="http://seich.martianwabbit.com/basic-of-_get-variables-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/</link>
	<description>Legendarido...</description>
	<lastBuildDate>Thu, 24 Jun 2010 18:32:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Seich</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-1024</link>
		<dc:creator>Seich</dc:creator>
		<pubDate>Thu, 24 Jun 2010 18:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-1024</guid>
		<description>It is not really bad for SEO, you can take a look at wordpress for example, all pages are dynamically generated and it works fine with web-crawlers. Pages are pre-rendered by the server for the crawlers so, they see the same as you do. If you are interested in SEO the best thing to do is edit your .htaccess file so that your pages are something more meaningful (http://www.something.com/pagename/ rather than http://www.something.com/index.php?page=pagename). This is used by sites like wordpress and such. I would recommend you check out this tutorial for more information: &lt;a href=&quot;http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/&lt;/a&gt;

This can be easily achieved if you are pulling information out of a mysql database since, you can just have the url be the query and figure some kind of organization mechanism. Just make sure to double-check for the value being entered to protect yourself from an sql injection as much as possible.</description>
		<content:encoded><![CDATA[<p>It is not really bad for SEO, you can take a look at wordpress for example, all pages are dynamically generated and it works fine with web-crawlers. Pages are pre-rendered by the server for the crawlers so, they see the same as you do. If you are interested in SEO the best thing to do is edit your .htaccess file so that your pages are something more meaningful (<a href="http://www.something.com/pagename/" rel="nofollow">http://www.something.com/pagename/</a> rather than <a href="http://www.something.com/index.php?page=pagename)" rel="nofollow">http://www.something.com/index.php?page=pagename)</a>. This is used by sites like wordpress and such. I would recommend you check out this tutorial for more information: <a href="http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/" target="_blank" rel="nofollow">http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/</a></p>
<p>This can be easily achieved if you are pulling information out of a mysql database since, you can just have the url be the query and figure some kind of organization mechanism. Just make sure to double-check for the value being entered to protect yourself from an sql injection as much as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JackLloyd</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-1023</link>
		<dc:creator>JackLloyd</dc:creator>
		<pubDate>Thu, 24 Jun 2010 12:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-1023</guid>
		<description>Just have a question, I was wondering what bots like googles crawler see when you have pages like this? Do they struggle to index your entire site? Basically, it is good for SEO?</description>
		<content:encoded><![CDATA[<p>Just have a question, I was wondering what bots like googles crawler see when you have pages like this? Do they struggle to index your entire site? Basically, it is good for SEO?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JackLloyd.</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-1022</link>
		<dc:creator>JackLloyd.</dc:creator>
		<pubDate>Wed, 23 Jun 2010 19:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-1022</guid>
		<description>Came accross this when searching google. Very helpful thank you!</description>
		<content:encoded><![CDATA[<p>Came accross this when searching google. Very helpful thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seich</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-981</link>
		<dc:creator>Seich</dc:creator>
		<pubDate>Fri, 01 Jan 2010 11:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-981</guid>
		<description>I don&#039;t really have a tutorial for that. Sorry. the thing about get variables is that you can freely edit them when you pass them. The best way to have them being safe is to check the values being passed with a very rigorous criteria. escaping characters, making sure it cannot do anything else than what you want it to.
If you tell me a little on what kind of thing you are trying to make I&#039;ll gladly try to help you as much as possible.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t really have a tutorial for that. Sorry. the thing about get variables is that you can freely edit them when you pass them. The best way to have them being safe is to check the values being passed with a very rigorous criteria. escaping characters, making sure it cannot do anything else than what you want it to.<br />
If you tell me a little on what kind of thing you are trying to make I&#8217;ll gladly try to help you as much as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zelina</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-980</link>
		<dc:creator>Zelina</dc:creator>
		<pubDate>Fri, 01 Jan 2010 03:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-980</guid>
		<description>Thanks Seich,
That helps introduce me to php and how the previous programmer structured our pages.
Drupal PHP Code Monkey says the GET array isn&#039;t safe. 
How do I make it production safe?
Do you have a tutorial?</description>
		<content:encoded><![CDATA[<p>Thanks Seich,<br />
That helps introduce me to php and how the previous programmer structured our pages.<br />
Drupal PHP Code Monkey says the GET array isn&#8217;t safe.<br />
How do I make it production safe?<br />
Do you have a tutorial?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seich</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-979</link>
		<dc:creator>Seich</dc:creator>
		<pubDate>Sun, 20 Dec 2009 07:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-979</guid>
		<description>&lt;blockquote cite=&quot;#comment-body-978&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-978&quot; rel=&quot;nofollow&quot;&gt;daryl&lt;/a&gt; :&lt;/strong&gt;
                &lt;div class=&quot;avatar&quot;&gt;
         &lt;img alt=&quot;&quot; src=&quot;http://www.gravatar.com/avatar/c0107ff6df7712751e868dc3d1ef5431?s=64&amp;d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&amp;r=G&quot; class=&quot;avatar avatar-64 photo&quot; height=&quot;64&quot; width=&quot;64&quot;&gt;       &lt;/div&gt;
       
       
          &lt;p&gt;Hi I just wan to ask :&lt;/br&gt;
if I have this var =”THE MAN” 
can this var be sent by $_GET[] ? tx if you don’t mind pls reply to my email too.&lt;/br&gt;
rgds,&lt;br&gt;
-daryl&lt;/p&gt;
          &lt;a id=&quot;comment-reply-978&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

      &lt;/blockquote&gt;

If you had a variable $test = &quot;hello World&quot; you would be able to pass it on to the next page by adding &quot;?test=Hello World&quot; to the link.. that way you would be able to retrieve it using $test = $_GET[&#039;test&#039;]; if you are using a form or something of that kind I would recommend using $_POST stuff.. if you give me some few details about what you are trying to do I could be a little more specific..</description>
		<content:encoded><![CDATA[<blockquote cite="#comment-body-978"><p>
<strong><a href="#comment-978" rel="nofollow">daryl</a> :</strong></p>
<div class="avatar">
         <img alt="" src="http://www.gravatar.com/avatar/c0107ff6df7712751e868dc3d1ef5431?s=64&amp;d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&amp;r=G" class="avatar avatar-64 photo" height="64" width="64"/>       </div>
<p>Hi I just wan to ask :<br />
if I have this var =”THE MAN”<br />
can this var be sent by $_GET[] ? tx if you don’t mind pls reply to my email too.<br />
rgds,<br />
-daryl</p>
<p>          <a id="comment-reply-978" rel="nofollow"></a></p>
</blockquote>
<p>If you had a variable $test = &#8220;hello World&#8221; you would be able to pass it on to the next page by adding &#8220;?test=Hello World&#8221; to the link.. that way you would be able to retrieve it using $test = $_GET['test']; if you are using a form or something of that kind I would recommend using $_POST stuff.. if you give me some few details about what you are trying to do I could be a little more specific..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daryl</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-978</link>
		<dc:creator>daryl</dc:creator>
		<pubDate>Sun, 20 Dec 2009 01:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-978</guid>
		<description>Hi I just wan to ask :

if I have this var =&quot;THE MAN&quot; 

can this var be sent by $_GET[] ? tx if you don&#039;t mind pls reply to my email too.

rgds,
-daryl</description>
		<content:encoded><![CDATA[<p>Hi I just wan to ask :</p>
<p>if I have this var =&#8221;THE MAN&#8221; </p>
<p>can this var be sent by $_GET[] ? tx if you don&#8217;t mind pls reply to my email too.</p>
<p>rgds,<br />
-daryl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seich</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-976</link>
		<dc:creator>Seich</dc:creator>
		<pubDate>Sat, 14 Nov 2009 04:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-976</guid>
		<description>&lt;blockquote cite=&quot;#comment-body-974&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-974&quot; rel=&quot;nofollow&quot;&gt;Drupal PHP Code Monkey&lt;/a&gt; :&lt;/strong&gt;
                &lt;div class=&quot;avatar&quot;&gt;
         &lt;img alt=&quot;&quot; src=&quot;http://www.gravatar.com/avatar/9b7e175754ec0097460958e1cb224dd4?s=64&amp;d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&amp;r=G&quot; class=&quot;avatar avatar-64 photo&quot; width=&quot;64&quot; height=&quot;64&quot;&gt;       &lt;/div&gt;
       
       
          &lt;p&gt;Values in the GET array should not be trusted. You need to clean them before using them. Including files in this way opens your site up to reading arbitrary files on your web server. Try moving around the fs using ../../ and stuff. Also, echoing the unclean id in the title tag allows for Cross Site Scripting stuff like this: &lt;a href=&quot;http://martianwabbit.com/page.php?id=alert%28/XSS/%29;&quot; rel=&quot;nofollow&quot;&gt;http://martianwabbit.com/page.php?id=alert(/XSS/);&lt;/a&gt;&lt;/p&gt;
          &lt;a id=&quot;comment-reply-974&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

      &lt;/blockquote&gt;
Yes, I definately agree with you, this code example is by no means production safe and shouldn&#039;t be used at all. It was mostly used to show how information from the $_GET array could be used.</description>
		<content:encoded><![CDATA[<blockquote cite="#comment-body-974"><p>
<strong><a href="#comment-974" rel="nofollow">Drupal PHP Code Monkey</a> :</strong></p>
<div class="avatar">
         <img alt="" src="http://www.gravatar.com/avatar/9b7e175754ec0097460958e1cb224dd4?s=64&amp;d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&amp;r=G" class="avatar avatar-64 photo" width="64" height="64"/>       </div>
<p>Values in the GET array should not be trusted. You need to clean them before using them. Including files in this way opens your site up to reading arbitrary files on your web server. Try moving around the fs using ../../ and stuff. Also, echoing the unclean id in the title tag allows for Cross Site Scripting stuff like this: <a href="http://martianwabbit.com/page.php?id=alert%28/XSS/%29;" rel="nofollow"></a><a href="http://martianwabbit.com/page.php?id=alert(/XSS/)" rel="nofollow">http://martianwabbit.com/page.php?id=alert(/XSS/)</a>;</p>
<p>          <a id="comment-reply-974" rel="nofollow"></a></p>
</blockquote>
<p>Yes, I definately agree with you, this code example is by no means production safe and shouldn&#8217;t be used at all. It was mostly used to show how information from the $_GET array could be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drupal PHP Code Monkey</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-975</link>
		<dc:creator>Drupal PHP Code Monkey</dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-975</guid>
		<description>Wordpress stripped out my tags. If you surround that JavaScript alert with script tags, it will execute and create a JS pop-up. I&#039;ll paste the escaped html here, but wordpress might filter it again. I hope you get the idea. 

page.php?id=&lt;script&gt;alert(/XSS/)&lt;/script&gt;</description>
		<content:encoded><![CDATA[<p>Wordpress stripped out my tags. If you surround that JavaScript alert with script tags, it will execute and create a JS pop-up. I&#8217;ll paste the escaped html here, but wordpress might filter it again. I hope you get the idea. </p>
<p>page.php?id=&lt;script&gt;alert(/XSS/)&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drupal PHP Code Monkey</title>
		<link>http://seich.martianwabbit.com/basic-of-_get-variables-php/comment-page-1/#comment-974</link>
		<dc:creator>Drupal PHP Code Monkey</dc:creator>
		<pubDate>Fri, 13 Nov 2009 10:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://seich.martianwabbit.com/?p=96#comment-974</guid>
		<description>Values in the GET array should not be trusted. You need to clean them before using them. Including files in this way opens your site up to reading arbitrary files on your web server. Try moving around the fs using ../../ and stuff. Also, echoing the unclean id in the title tag allows for Cross Site Scripting stuff like this: http://martianwabbit.com/page.php?id=alert(/XSS/);</description>
		<content:encoded><![CDATA[<p>Values in the GET array should not be trusted. You need to clean them before using them. Including files in this way opens your site up to reading arbitrary files on your web server. Try moving around the fs using ../../ and stuff. Also, echoing the unclean id in the title tag allows for Cross Site Scripting stuff like this: <a href="http://martianwabbit.com/page.php?id=alert(/XSS/)" rel="nofollow">http://martianwabbit.com/page.php?id=alert(/XSS/)</a>;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
