<?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>Joshua + Schaible + Blog &#187; Javascript</title>
	<atom:link href="http://www.joshuaschaible.com/blog/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joshuaschaible.com/blog</link>
	<description>My World.</description>
	<lastBuildDate>Fri, 14 May 2010 18:19:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Add Falling Snow To Your Website With Javascript!</title>
		<link>http://www.joshuaschaible.com/blog/add-falling-snow-to-your-website-with-javascript/</link>
		<comments>http://www.joshuaschaible.com/blog/add-falling-snow-to-your-website-with-javascript/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 17:57:35 +0000</pubDate>
		<dc:creator>Joshua Schaible</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Snow Storm]]></category>

		<guid isPermaLink="false">http://www.joshuaschaible.com/blog/?p=2093</guid>
		<description><![CDATA[
It&#8217;s that time again! The holidays are here and snow is everywhere. (At least where I live.) Here i&#8217;m going to show you how with one line of code and one JavaScript file, you can have a light snow storm on your website.

Step One
Download the  snowstorm.js file. Then upload the javascript file into the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a rel="attachment wp-att-2097" href="http://www.joshuaschaible.com/blog/add-falling-snow-to-your-website-with-javascript/snow/"><img class="aligncenter size-full wp-image-2097" style="border: 2px solid #333;" title="snow" src="http://www.joshuaschaible.com/blog/wp-content/uploads/2009/12/snow.jpg" alt="snow" width="500" height="150" /></a></p>
<p style="text-align: left;">It&#8217;s that time again! The holidays are here and snow is everywhere. (At least where I live.) Here i&#8217;m going to show you how with one line of code and one JavaScript file, you can have a light snow storm on your website.</p>
<p><span id="more-2093"></span></p>
<h4>Step One</h4>
<p>Download the <a href="http://joshuaschaible.com/blog/demo/snowstorm/snowstorm.js" target="_blank"></a> snowstorm.js file. Then upload the javascript file into the root folder of your website or your designated /js/ folder.</p>
<h4>Step Two</h4>
<p>Place this code in the &lt;head&gt; tags or the footer of your website:</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;snowstorm.js&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span></div>
</div>
<p>or</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;js/snowstorm.js&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span></div>
</div>
<h4>Customizing</h4>
<p>Inside the snowstorm.js file will be several options you can configure such as snow speed, snow color, snow size, how it interacts with mouse movements and so on. If you have questions, post it in the comments!</p>
<h4>The Demo</h4>
<p><a href="http://joshuaschaible.com/blog/demo/snowstorm/" target="_blank"></a>View the demo here!</p>
<p><em>Code by Scott Schiller &#8211; http://schillmania.com</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshuaschaible.com/blog/add-falling-snow-to-your-website-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Redirect Users Using Javascript or PHP!</title>
		<link>http://www.joshuaschaible.com/blog/how-to-redirect-users-using-javascript-or-php/</link>
		<comments>http://www.joshuaschaible.com/blog/how-to-redirect-users-using-javascript-or-php/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:14:29 +0000</pubDate>
		<dc:creator>Joshua Schaible</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.joshuaschaible.com/blog/?p=1949</guid>
		<description><![CDATA[
Say your switching domains and you want to automatically forward users that go to your old domain, to get forwarded them to your new one. This can be accomplished with either Javascript or PHP.

Using Javascript
Insert this Javascript code into the head of your page (Most likely your index file):

&#60;script type=&#34;text/javascript&#34;&#62;
function delayer(){
&#160; &#160; window.location = &#34;http://joshuaschaible.com&#34;
}
&#60;/script&#62;

Replace [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.joshuaschaible.com/blog/wp-content/uploads/2009/10/code.jpg" alt="code" title="code" width="500" height="150" class="aligncenter size-full wp-image-1963" style="border: 2px solid #333" /></p>
<p>Say your switching domains and you want to automatically forward users that go to your old domain, to get forwarded them to your new one. This can be accomplished with either Javascript or PHP.</p>
<p><span id="more-1949"></span></p>
<h3>Using Javascript</h3>
<p>Insert this Javascript code into the head of your page (Most likely your index file):</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span>&gt;</span><br />
function delayer(){<br />
&nbsp; &nbsp; window.location = &quot;http://joshuaschaible.com&quot;<br />
}<br />
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span></div>
</div>
<p>Replace &#8220;http://joshuaschaible.com/&#8221; with that URL you want to forward your users too. Then you must insert an &#8220;onload&#8221; function in your body tag. It should look like this: </p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/body.html"><span class="kw2">body</span></a> <span class="kw3">onLoad</span><span class="sy0">=</span><span class="st0">&quot;setTimeout(&#8216;delayer()&#8217;, 5000)&quot;</span>&gt;</span></div>
</div>
<p>This tells the browser to forward to the site you specificed in 5 seconds. 5 Seconds = 5000. 4 Seconds = 4000 and so on.</p>
<h3>Using PHP</h3>
<p>If you want to automatically forward your users with out a delay, here is a simple step. First your index file must have an extention of .php. (ex. index.php) If it doesn&#8217;t you can do this in your control panel or FTP. Next, insert this code at the top of your web page.</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="kw2">&lt;?php</span><br />
&nbsp; <a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: http://joshuaschaible.com&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="sy1">?&gt;</span></div>
</div>
<p>Again, make sure to change the URL so that your site doesn&#8217;t forward to mine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshuaschaible.com/blog/how-to-redirect-users-using-javascript-or-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send SMS Text Messages Using HTML &amp; PHP!</title>
		<link>http://www.joshuaschaible.com/blog/send-sms-text-messages-using-html-php/</link>
		<comments>http://www.joshuaschaible.com/blog/send-sms-text-messages-using-html-php/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 19:17:45 +0000</pubDate>
		<dc:creator>Joshua Schaible</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[Text Messages]]></category>

		<guid isPermaLink="false">http://www.joshuaschaible.com/blog/?p=1866</guid>
		<description><![CDATA[
Every once and a while I like to send my friends prank text messages to make them think someone is watching them. The problem is every time I use a free service, they some how cram an ad or spam into the message. I&#8217;m going to show you how you can send your own text [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-1875" style="border: 2px solid #333333;" title="sms" src="http://www.joshuaschaible.com/blog/wp-content/uploads/2009/10/sms.jpg" alt="sms" width="500" height="150" /></p>
<p>Every once and a while I like to send my friends prank text messages to make them think someone is watching them. The problem is every time I use a free service, they some how cram an ad or spam into the message. I&#8217;m going to show you how you can send your own text messages using HTML/PHP. Demo &amp; Download Included!</p>
<p><span id="more-1866"></span></p>
<h3>First</h3>
<p>Create the form that you&#8217;ll put in your HTML:</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/form.html"><span class="kw2">form</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;sms&quot;</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;sms&quot;</span> <span class="kw3">method</span><span class="sy0">=</span><span class="st0">&quot;post&quot;</span> <span class="kw3">action</span><span class="sy0">=</span><span class="st0">&quot;sms/send_sms.php&quot;</span>&gt;</span></p>
<p><span class="sc2">&lt;<a href="http://december.com/html/4/element/input.html"><span class="kw2">input</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;to&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text&quot;</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;to&quot;</span> <span class="sy0">/</span>&gt;</span></p>
<p><span class="sc2">&lt;<a href="http://december.com/html/4/element/select.html"><span class="kw2">select</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;carrier&quot;</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;carrier&quot;</span>&gt;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sc2">&lt;<a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;att&quot;</span>&gt;</span>AT<span class="sc1">&amp;amp;</span>T<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sc2">&lt;<a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;verizon&quot;</span>&gt;</span>Verizon<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sc2">&lt;<a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;tmobile&quot;</span>&gt;</span>T-Mobile<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sc2">&lt;<a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;sprint&quot;</span>&gt;</span>Sprint<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sc2">&lt;<a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;virgin&quot;</span>&gt;</span>Virgin Mobile<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html"><span class="kw2">option</span></a>&gt;</span></p>
<p><span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/select.html"><span class="kw2">select</span></a>&gt;</span></p>
<p><span class="sc2">&lt;<a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;message&quot;</span> <span class="kw3">rows</span><span class="sy0">=</span><span class="st0">&quot;6&quot;</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;message&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a>&gt;</span></p>
<p><span class="sc2">&lt;<a href="http://december.com/html/4/element/input.html"><span class="kw2">input</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;submit&quot;</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;Submit&quot;</span> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;Send&quot;</span> <span class="sy0">/</span>&gt;</span></p>
<p><span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/form.html"><span class="kw2">form</span></a>&gt;</span></div>
</div>
<h3>Second</h3>
<p>Now we need the PHP to send the text message:</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="kw2">&lt;?php</span><br />
<span class="re0">$to</span> <span class="sy0">=</span> <span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">&#8216;to&#8217;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
<span class="re0">$carrier</span> <span class="sy0">=</span> <span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">&#8216;carrier&#8217;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
<span class="re0">$message</span> <span class="sy0">=</span> <a href="http://www.php.net/stripslashes"><span class="kw3">stripslashes</span></a><span class="br0">&#40;</span><span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st_h">&#8216;message&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="re0">$headers</span> <span class="sy0">=</span> <span class="st_h">&#8216;From: QuickText &lt;no-reply@quicktext.com&gt;&#8217;</span> <span class="sy0">.</span> <span class="st0">&quot;<span class="es1">\r</span><span class="es1">\n</span>&quot;</span><span class="sy0">;</span></p>
<p><span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$to</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">||</span> <span class="br0">&#40;</span><a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$message</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: ../sms_error.php&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$carrier</span> <span class="sy0">==</span> <span class="st0">&quot;verizon&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$formatted_number</span> <span class="sy0">=</span> <span class="re0">$to</span><span class="sy0">.</span><span class="st0">&quot;@vtext.com&quot;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/mail"><span class="kw3">mail</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es4">$formatted_number</span>&quot;</span><span class="sy0">,</span> <span class="st0">&quot; TXT Message&quot;</span><span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$message</span>&quot;</span> <span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$headers</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p><a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: ../sms_success.php&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$carrier</span> <span class="sy0">==</span> <span class="st0">&quot;tmobile&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$formatted_number</span> <span class="sy0">=</span> <span class="re0">$to</span><span class="sy0">.</span><span class="st0">&quot;@tomomail.net&quot;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/mail"><span class="kw3">mail</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es4">$formatted_number</span>&quot;</span><span class="sy0">,</span> <span class="st0">&quot; TXT Message&quot;</span><span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$message</span>&quot;</span> <span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$headers</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p><a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: ../sms_success.php&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$carrier</span> <span class="sy0">==</span> <span class="st0">&quot;sprint&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$formatted_number</span> <span class="sy0">=</span> <span class="re0">$to</span><span class="sy0">.</span><span class="st0">&quot;@messaging.sprintpcs.com&quot;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/mail"><span class="kw3">mail</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es4">$formatted_number</span>&quot;</span><span class="sy0">,</span> <span class="st0">&quot; TXT Message&quot;</span><span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$message</span>&quot;</span> <span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$headers</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p><a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: ../sms_success.php&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$carrier</span> <span class="sy0">==</span> <span class="st0">&quot;att&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$formatted_number</span> <span class="sy0">=</span> <span class="re0">$to</span><span class="sy0">.</span><span class="st0">&quot;@txt.att.net&quot;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/mail"><span class="kw3">mail</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es4">$formatted_number</span>&quot;</span><span class="sy0">,</span> <span class="st0">&quot; TXT Message&quot;</span><span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$message</span>&quot;</span> <span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$headers</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: ../sms_success.php&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$carrier</span> <span class="sy0">==</span> <span class="st0">&quot;virgin&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$formatted_number</span> <span class="sy0">=</span> <span class="re0">$to</span><span class="sy0">.</span><span class="st0">&quot;@vmobl.com&quot;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/mail"><span class="kw3">mail</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es4">$formatted_number</span>&quot;</span><span class="sy0">,</span> <span class="st0">&quot; TXT Message&quot;</span><span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$message</span>&quot;</span> <span class="sy0">,</span> <span class="st0">&quot;<span class="es4">$headers</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p><a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: ../sms_success.php&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="sy1">?&gt;</span></div>
</div>
<p>The code above creates the MINIMUM basics that you need to send a text message. So I went ahead and added some simple styling, validation, support for the iPhone browser and more. Check out the demo and download the files below!</p>
<p>Feel free to use this code, build upon it and share it. But if you would be so kind, leave the footer link in the files. Thank you!</p>
<p><i>*Javascript used in this code example was written by my wife Lauren Schaible.</i></p>
<p style="text-align: center;"><a href="http://joshuaschaible.com/blog/demo/quicktext/" target="_blank"><img class="aligncenter size-full wp-image-1904" style="margin-bottom: 6px;" title="demo" src="http://www.joshuaschaible.com/blog/wp-content/uploads/2009/10/demo2.jpg" alt="demo" width="500" height="50" /></a><a href="http://joshuaschaible.com/blog/demo/quicktext/quicktext-1.0.zip"><img class="aligncenter size-full wp-image-1905" title="download" src="http://www.joshuaschaible.com/blog/wp-content/uploads/2009/10/download2.jpg" alt="download" width="500" height="50" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshuaschaible.com/blog/send-sms-text-messages-using-html-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
