<?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>NewSourceMedia Blog &#187; check</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/check/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>PHP how to find Odd and Even numbers</title>
		<link>http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/</link>
		<comments>http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/#comments</comments>
		<pubDate>Tue, 30 Nov 1999 06:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math and Numbers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[compair]]></category>
		<category><![CDATA[digits]]></category>
		<category><![CDATA[even]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[match]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[odd]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-how-to-find-odd-and-even-numbers/</guid>
		<description><![CDATA[Here is how to find odd and even numbers in php. How to find if a number is odd or even? In PHP I learn to use the MOD (%) operator. see below for an example: $i = 10; if &#8230; <a href="http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Here is how to find odd and even numbers in php.
<span id="more-173"></span>

How to find if a number is odd or even?
In PHP I learn to use the MOD (%) operator. see below for an example: <code>$i = 10;</code>

<code>if ($i % 2) {
echo "$i is odd";
} else {
echo "$i is even";
}
</code>

You can also use the PHP "&amp;" operator that will give you better   performance
You can use the PHP code like so:

<code>$i = 10;
if ( $i&amp;1 )
{
echo "$i is odd";
}
else
{
echo "$i is even";
}</code>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Javascript Email Validation Form</title>
		<link>http://newsourcemedia.com/blog/javascript-email-validation-form/</link>
		<comments>http://newsourcemedia.com/blog/javascript-email-validation-form/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[JS Forms]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jscript]]></category>
		<category><![CDATA[save.]]></category>
		<category><![CDATA[using]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2006/12/28/javascript-email-validation-form/</guid>
		<description><![CDATA[Check user email address forms to make sure they are valid using JavaScript before saving their info. The JavaScript code is provided here. The function below checks if the content has the general syntax of an email. This means that &#8230; <a href="http://newsourcemedia.com/blog/javascript-email-validation-form/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Check user email address forms to make sure they are valid using JavaScript before saving their info. The JavaScript code is provided here.
<span id="more-177"></span>

The function below checks if the content has the general syntax of an email.

This means that the input data must contain at least an @ sign and a dot (.). Also, the @ must not be the first character of the email address, and the last dot must at least be one character after the @ sign:

<pre lang="javascript"><script language="Javascript">
function checksubmit()
{
apos=document.add_data.email.value.indexOf("@")
dotpos=document.add_data.email.value.lastIndexOf(".")
if (document.add_data.email.value == "" || apos<1 || dotpos-apos<2)
{
alert("Please fix: email")
document.add_data.email.focus()
return false
}
return true
}
</script> </pre>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/javascript-email-validation-form/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
