<?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: How can I export the variables values from a php file (on the screen) to another file in another directory?</title>
	<atom:link href="http://www.exportblueprint.com/blog/107/how-can-i-export-the-variables-values-from-a-php-file-on-the-screen-to-another-file-in-another-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.exportblueprint.com/blog/107/how-can-i-export-the-variables-values-from-a-php-file-on-the-screen-to-another-file-in-another-directory/</link>
	<description>The Three Proven Principles  Of International Sales Success  For Small &#38; Medium-Sized Companies</description>
	<lastBuildDate>Sat, 01 May 2010 04:25:59 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: theelitecoder</title>
		<link>http://www.exportblueprint.com/blog/107/how-can-i-export-the-variables-values-from-a-php-file-on-the-screen-to-another-file-in-another-directory/comment-page-1/#comment-346</link>
		<dc:creator>theelitecoder</dc:creator>
		<pubDate>Fri, 09 Oct 2009 02:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.exportblueprint.com/blog/export-directory/how-can-i-export-the-variables-values-from-a-php-file-on-the-screen-to-another-file-in-another-directory#comment-346</guid>
		<description>There are several ways to accomplish this, but the safest and most efficient way to accomplish this is by using sessions. 

Here is a code example: 

$userName = $_POST[userName];

// I have received this value from the form. Now I want it on the screen:

echo $userName;

$SESSION[&#039;username&#039;] = $userName;

_____________________________________________

Now you may want to access the username variable in another script. You can output it by modifying the echo example shown above with this: 

echo $SESSION[&#039;username&#039;];&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>There are several ways to accomplish this, but the safest and most efficient way to accomplish this is by using sessions. </p>
<p>Here is a code example: </p>
<p>$userName = $_POST[userName];</p>
<p>// I have received this value from the form. Now I want it on the screen:</p>
<p>echo $userName;</p>
<p>$SESSION['username'] = $userName;</p>
<p>_____________________________________________</p>
<p>Now you may want to access the username variable in another script. You can output it by modifying the echo example shown above with this: </p>
<p>echo $SESSION['username'];<br /><b>References : </b></p>
]]></content:encoded>
	</item>
</channel>
</rss>
