<?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>What is $_REQUEST? Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/what-is-_request/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/what-is-_request/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 28 Aug 2021 12:14:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Tutorial for $_REQUEST in Super Global Variables</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-_request-in-super-global-variables/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-_request-in-super-global-variables/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Sat, 28 Aug 2021 12:14:51 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[$_REQUEST]]></category>
		<category><![CDATA[$_REQUEST in Super Global Variables]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php tutorial]]></category>
		<category><![CDATA[Super Global Variables]]></category>
		<category><![CDATA[Super Global Variables in PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Tutorial for Super Global Variables]]></category>
		<category><![CDATA[Tutorial for Super Global Variables in PHP]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[What is $_REQUEST?]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8462</guid>

					<description><![CDATA[<p>What is $_REQUEST? $_REQUEST is a super global variable that&#8217;s used to collect data when an HTML form is submitted. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-_request-in-super-global-variables/">Tutorial for $_REQUEST in Super Global Variables</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is $_REQUEST?</h3>



<p class="wp-block-paragraph"> $_REQUEST is a super global variable that&#8217;s used to collect data when an HTML form is submitted. Because $_POST and $_GET accomplish the same purpose and are extensively used, $_REQUEST is rarely used.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://images.slideplayer.com/26/8596001/slides/slide_7.jpg" alt="Global Variables - Superglobals Several predefined variables in PHP are  &quot;superglobals&quot;, which means that they are always accessible, regardless of  scope. - ppt download"/></figure></div>



<p class="wp-block-paragraph"><strong>Example:-</strong> A form with an input field and a submit button is shown in the example below. The form data is delivered to the file provided in the action element of the form> tag when a user submits the data by clicking &#8220;Submit.&#8221; For processing form data, we point to this file in our example. Replace it with the filename of your choosing if you want to process form data with another PHP file. The value of the input field may then be collected using the super global variable $_REQUEST:</p>



<script src="https://gist.github.com/AdarshAshwani/994abf6204843736c624049004eb9c7c.js"></script>



<p class="wp-block-paragraph"><strong>Output:-</strong> </p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-193.png" alt="" class="wp-image-8463" width="665" height="47" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-193.png 665w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-193-300x21.png 300w" sizes="(max-width: 665px) 100vw, 665px" /><figcaption><strong>Empty box</strong></figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="664" height="35" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-194.png" alt="" class="wp-image-8464" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-194.png 664w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-194-300x16.png 300w" sizes="(max-width: 664px) 100vw, 664px" /><figcaption><strong>Just fill some data</strong></figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="666" height="50" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-195.png" alt="" class="wp-image-8465" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-195.png 666w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-195-300x23.png 300w" sizes="(max-width: 666px) 100vw, 666px" /><figcaption><strong>After Clicking on submit button it shows this result</strong></figcaption></figure></div>



<p class="wp-block-paragraph">We&#8217;ve constructed a form in the above code that accepts the user&#8217;s name as input and prints it when the submit button is pressed. Because we alter the data on the same page using PHP code, we transfer the data received in the form to the same page using the $_SERVER[‘PHP SELF&#8217;] element as stated in the action attribute. The $_REQUEST super global array variable is used to obtain the data.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-_request-in-super-global-variables/">Tutorial for $_REQUEST in Super Global Variables</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-_request-in-super-global-variables/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
