<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webcodez - The database of web programming tutorials &#187; GET</title>
	<atom:link href="http://www.webcodez.net/tag/get/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webcodez.net</link>
	<description>Archive of tutorials on php,mysql,Javascript,html,css and other coding languages as well as code-snippets.</description>
	<lastBuildDate>Sun, 14 Aug 2011 14:01:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>PHP GET Variables</title>
		<link>http://www.webcodez.net/php-mysql/php-get-variables/</link>
		<comments>http://www.webcodez.net/php-mysql/php-get-variables/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 11:57:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & MySql]]></category>
		<category><![CDATA[References]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[GET]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.webcodez.net/?p=686</guid>
		<description><![CDATA[A GET Variable is a special kind of variable that is created through the URL. They can be created by passing parameters via the URL. Take for example the following URL: http://mywebsite.com/somefile.php?var1=value1&#38;var2=value2&#38;var3=value3 When accessing the URL as shown above, there will be created a total of three GET variables: var1, var2 and var3 with the [...]]]></description>
			<content:encoded><![CDATA[<p>A GET Variable is a special kind of variable that is created through the URL. They can be created by passing parameters via the URL. Take for example the following URL:</p>
<p><a href="#">http://mywebsite.com/somefile.php?var1=value1&amp;var2=value2&amp;var3=value3</a></p>
<p>When accessing the URL as shown above, there will be created a total of three GET variables: var1, var2 and var3 with the values value1, value2 and value3. As you can see,  to add GET variables to the URL you need to put a question mark (?) after the filename. Then you can define any GET variables, separated by the AND mark (&amp;).</p>
<p>All GET variables will be created inside an array <strong>$_GET</strong>. Accessing a file somefile.php through the above example URL, would create the following GET variables in code:</p>
<p><strong>somefile.php</strong>(?var1=value1&amp;var2=value2&amp;var3=value3)</p>
<pre name="code" class="php">
$_GET[‘var1’] = “value1”;
$_GET[‘var2’] = “value2”;
$_GET[‘var3’] = “value3”;
</pre>
<p>To print all GET variables, the <strong>print_r</strong> function may be used. This may make it even more clear to see what’s happening.</p>
<pre name="code" class="php">
print_r($_GET); //prints the $_GET array on the screen
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webcodez.net/php-mysql/php-get-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

