<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Unobtrusive PHP ?</title>
	<atom:link href="http://cssgallery.info/unobtrusive-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://cssgallery.info/unobtrusive-php/</link>
	<description>Resources for web developers</description>
	<lastBuildDate>Tue, 06 Jul 2010 15:11:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: norman784</title>
		<link>http://cssgallery.info/unobtrusive-php/comment-page-1/#comment-2973</link>
		<dc:creator>norman784</dc:creator>
		<pubDate>Wed, 13 May 2009 15:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://cssgallery.info/?p=326#comment-2973</guid>
		<description>But, the problem, if I have understand is, the HTMl can be changed with tools like firebug, and the validation will no longer secure

regards</description>
		<content:encoded><![CDATA[<p>But, the problem, if I have understand is, the HTMl can be changed with tools like firebug, and the validation will no longer secure</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels Bom</title>
		<link>http://cssgallery.info/unobtrusive-php/comment-page-1/#comment-1544</link>
		<dc:creator>Niels Bom</dc:creator>
		<pubDate>Wed, 18 Feb 2009 17:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://cssgallery.info/?p=326#comment-1544</guid>
		<description>Well the problem you&#039;re trying to tackle is (imho) defining in only one location what a certain form element is supposed to deliver. And what validation rules it has to obey.

My suggestion: hang it all on the input name &#039;email&#039;. You can easily attach jQuery to that form element, don&#039;t need a class for that.

Do the JS validation through AJAX and call the same serverside function to evaluate the validity of the emailadress. Then when the form is really submitted to the server the contents of the emailfield go through the same function.</description>
		<content:encoded><![CDATA[<p>Well the problem you&#8217;re trying to tackle is (imho) defining in only one location what a certain form element is supposed to deliver. And what validation rules it has to obey.</p>
<p>My suggestion: hang it all on the input name &#8216;email&#8217;. You can easily attach jQuery to that form element, don&#8217;t need a class for that.</p>
<p>Do the JS validation through AJAX and call the same serverside function to evaluate the validity of the emailadress. Then when the form is really submitted to the server the contents of the emailfield go through the same function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://cssgallery.info/unobtrusive-php/comment-page-1/#comment-1089</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 04 Feb 2009 09:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://cssgallery.info/?p=326#comment-1089</guid>
		<description>How would you add multiple rules?



This is also a security hole because a hacker only needs to change the fieldname to bypass validation rules. For js validation it doesn&#039;t matter because it&#039;s backed up by serverside validation.

Another thing to keep in mind is that is you process the value using another (POST) variable you still have to return it to the original value in case of errors in the validation</description>
		<content:encoded><![CDATA[<p>How would you add multiple rules?</p>
<p>This is also a security hole because a hacker only needs to change the fieldname to bypass validation rules. For js validation it doesn&#8217;t matter because it&#8217;s backed up by serverside validation.</p>
<p>Another thing to keep in mind is that is you process the value using another (POST) variable you still have to return it to the original value in case of errors in the validation</p>
]]></content:encoded>
	</item>
</channel>
</rss>
