<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for the snowdonkey</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Tue, 02 Dec 2008 08:39:57 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>All-Purpose Form Pre-Validation</title>
	<link>http://www.bytemycode.com/snippets/snippet/638/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/638/comments/</comments>
	<pubDate>Tue, 10 Apr 2007 21:39:42 +0000</pubDate>
	<dc:creator>snowdonkey</dc:creator>
	<category>Form, PHP, Validate</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/638/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Apr. 10th, 2007  9:39 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/638/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/snowdonkey/" title="Helper">snowdonkey</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Form">Form</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Validate">Validate</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/638/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>The following script is a single interface for pre-validating <i>any</i> HTML form.  It lets you validate your form data the way you want, while handling the rudimentary tasks itself.<br /><br />1)  Change just one variable to make it work with $_GET or $_POST or $_REQUEST.<br /><br />2)  Name which elements are 'required' all at once in a hidden HTML text input.<br /><br />3)  Easily provide field descriptions in hidden HTML text inputs that you can use to print error statements.<br /><br />4)  Call a single function to print out error statements that you can easily style with CSS.<br /><br />5)  It automatically checks if fields marked 'required' have been filled out.<br /><br />Most of the pre-validation code is from PHP 5: Unleashed by Sams Publishing.  I found it extremely useful for a recent project.  Sharing it here, I removed some unnecessary functions, and tried to simplify some points.  <br /><br />All the comments are my own; hopefully I provided more than enough explanation.  <img src="http://www.bytemycode.com/img/wysiwyg/emo-cool.gif" /></p>
		]]>
	</description>
</item><item>
	<title>Page Hits Counter</title>
	<link>http://www.bytemycode.com/snippets/snippet/589/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/589/comments/</comments>
	<pubDate>Mon, 12 Feb 2007 19:00:41 +0000</pubDate>
	<dc:creator>snowdonkey</dc:creator>
	<category>"hits counter", cookies, PHP</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/589/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Feb. 12th, 2007  7:00 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/589/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/snowdonkey/" title="Helper">snowdonkey</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22hits+counter%22">"hits counter"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/cookies">cookies</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/589/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>A simple page hits counter that uses a single cookie to tell the user how many times they have visited the page.</p>
		]]>
	</description>
</item><item>
	<title>Hide CSS from Opera</title>
	<link>http://www.bytemycode.com/snippets/snippet/288/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/288/comments/</comments>
	<pubDate>Sun, 13 Aug 2006 16:52:13 +0000</pubDate>
	<dc:creator>snowdonkey</dc:creator>
	<category>"css", "Opera", "stylesheets"</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/288/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Aug. 13th, 2006  4:52 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/288/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/snowdonkey/" title="Helper">snowdonkey</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22css%22">"css"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/%22Opera%22">"Opera"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/%22stylesheets%22">"stylesheets"</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/288/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 4
			<p>Hide CSS styles from Opera by substituting Latin letter "r" for Unicode character 82 in the media attribute "screen" of the <i>style</i> tag.<br /><br />Tested in browsers based on Netscape, Mozilla, and Internet Explorer for PC.</p>
		]]>
	</description>
</item><item>
	<title>Preload Images in an Array</title>
	<link>http://www.bytemycode.com/snippets/snippet/287/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/287/comments/</comments>
	<pubDate>Sun, 13 Aug 2006 14:23:31 +0000</pubDate>
	<dc:creator>snowdonkey</dc:creator>
	<category>"array", "images", "javascript" "preload"</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/287/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Aug. 13th, 2006  2:23 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/287/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/snowdonkey/" title="Helper">snowdonkey</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22array%22">"array"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/%22images%22">"images"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/%22javascript%22+%22preload%22">"javascript" "preload"</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/287/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>Load images more quickly in a web page by having the browser cache them before they are requested by the user.<br /><br />This script specifies the location of images that share a common folder.  It can be used for multiple images and folders.  <br /><br />This method uses less code and is more maintanable than specifying the location of each image individually.</p>
		]]>
	</description>
</item>
	</channel>
</rss>