<?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>Heck Designs &#187; functions</title>
	<atom:link href="http://www.heckdesigns.com/tag/functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.heckdesigns.com</link>
	<description>Bringing your ideas to life with a functional design in mind.</description>
	<lastBuildDate>Mon, 25 Apr 2011 03:31:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Tutorial &#8211; Delayed Redirect using PHP</title>
		<link>http://www.heckdesigns.com/tutorials/tutorial-delayed-redirect-using-php/</link>
		<comments>http://www.heckdesigns.com/tutorials/tutorial-delayed-redirect-using-php/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 19:53:14 +0000</pubDate>
		<dc:creator>Robert Heck</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Contact Form]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.heckdesigns.com/?p=540</guid>
		<description><![CDATA[I had to look into this because I had a form that I wanted to show a thank you message for a moment and then have it redirect back to the main page. Now the first thought is to use: header&#40;&#8216;Location: /&#8217;&#41;; The problem with this is that as I&#8217;m displaying a message beforehand. This becomes an invalid PHP function as it is not first thing being executed. This is what I found works nicely: echo &#8216;&#60;meta http-equiv=&#34;refresh&#34; content=&#34;3; /&#34;...<br/><a href="http://www.heckdesigns.com/tutorials/tutorial-delayed-redirect-using-php/">Read More Here</a>]]></description>
			<content:encoded><![CDATA[<p>I had to look into this because I had a form that I wanted to show a thank you message for a moment and then have it redirect back to the main page.</p>
<p>Now the first thought is to use:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st0">&#8216;Location: /&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>The problem with this is that as I&#8217;m displaying a message beforehand. This becomes an invalid PHP function as it is not first thing being executed.</p>
<p>This is what I found works nicely:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216;&lt;meta http-equiv=&quot;refresh&quot; content=&quot;3; /&quot; /&gt;&#8217;</span>;</div>
</li>
</ol>
</div>
<p>It is set to wait 3 seconds before redirecting.  That is how you can display a message on the page and then have it redirect to another page with a delay so that the visitor has a chance to read the message.</p>
<p>I hope you find this little bit of code useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heckdesigns.com/tutorials/tutorial-delayed-redirect-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
