<?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: Coded Up Product_id Validation Script</title>
	<atom:link href="http://www.jonwaraas.com/coded-up-product_id-validation-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/</link>
	<description>Make Money At Home with Jon Waraas</description>
	<lastBuildDate>Fri, 10 Feb 2012 09:48:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: cadillac sioux falls</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-49088</link>
		<dc:creator>cadillac sioux falls</dc:creator>
		<pubDate>Wed, 11 Nov 2009 18:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-49088</guid>
		<description>That&#039;s a pain when you get hacked like that.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a pain when you get hacked like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Waraas</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-49024</link>
		<dc:creator>Jon Waraas</dc:creator>
		<pubDate>Tue, 10 Nov 2009 19:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-49024</guid>
		<description>How would you end that part?

This:

}elseif($size &gt;= 4) {
$price_pre = ‘18.99′;
}else{
$price_pre = ‘0′;
}</description>
		<content:encoded><![CDATA[<p>How would you end that part?</p>
<p>This:</p>
<p>}elseif($size >= 4) {<br />
$price_pre = ‘18.99′;<br />
}else{<br />
$price_pre = ‘0′;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48996</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 10 Nov 2009 10:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48996</guid>
		<description>In all my code, regardless of whether its simple URL structure or otherwise I always do the following:

1. Verify the page / product / id exists
2. Pull info from database and compare with what was sent
3. Redirect / amend incorrect details where necessary
4. Carry on

I use it mostly on URLs but it means if i have a URl structure of
toyshop.com/toys/cooltoy_999.html and someone types in 
toyshop.com/toys/cooltoy_998.html it will redirect to
toyshop.com/girls/mylittlepony_998.html etc.

This means that if I ever make a mistake with URL structures i am covered and I cannot fall foul to people messing around</description>
		<content:encoded><![CDATA[<p>In all my code, regardless of whether its simple URL structure or otherwise I always do the following:</p>
<p>1. Verify the page / product / id exists<br />
2. Pull info from database and compare with what was sent<br />
3. Redirect / amend incorrect details where necessary<br />
4. Carry on</p>
<p>I use it mostly on URLs but it means if i have a URl structure of<br />
toyshop.com/toys/cooltoy_999.html and someone types in<br />
toyshop.com/toys/cooltoy_998.html it will redirect to<br />
toyshop.com/girls/mylittlepony_998.html etc.</p>
<p>This means that if I ever make a mistake with URL structures i am covered and I cannot fall foul to people messing around</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Berko</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48990</link>
		<dc:creator>Berko</dc:creator>
		<pubDate>Tue, 10 Nov 2009 07:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48990</guid>
		<description>Hey Jon,

Personally id redirect on the else condition.

If someone is doing the wrong thing then dont default the price to $0, that could lead to other problems depending on how your system works.

If they are doing something wrong and things dont add up just redirect to the homepage or last viewed page.

It might be a personal thing but to me it seems a bit safer.</description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>Personally id redirect on the else condition.</p>
<p>If someone is doing the wrong thing then dont default the price to $0, that could lead to other problems depending on how your system works.</p>
<p>If they are doing something wrong and things dont add up just redirect to the homepage or last viewed page.</p>
<p>It might be a personal thing but to me it seems a bit safer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Design Beach</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48973</link>
		<dc:creator>Web Design Beach</dc:creator>
		<pubDate>Tue, 10 Nov 2009 00:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48973</guid>
		<description>Well, i didn&#039;t know hackers are so frequent on fraud orders. So it&#039;s a must do security improvements on orders. But i think also, that it would be best to hand process order before they go out to dropshipper ;-)</description>
		<content:encoded><![CDATA[<p>Well, i didn&#8217;t know hackers are so frequent on fraud orders. So it&#8217;s a must do security improvements on orders. But i think also, that it would be best to hand process order before they go out to dropshipper <img src='http://www.jonwaraas.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EarningStep</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48935</link>
		<dc:creator>EarningStep</dc:creator>
		<pubDate>Mon, 09 Nov 2009 03:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48935</guid>
		<description>great job ...john...</description>
		<content:encoded><![CDATA[<p>great job &#8230;john&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Is The Fourth Kind Real</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48915</link>
		<dc:creator>Is The Fourth Kind Real</dc:creator>
		<pubDate>Sat, 07 Nov 2009 23:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48915</guid>
		<description>Thats why I like to hand process my orders. It really helps cut down on fraud orders. I would be concerned with 1 fraud order a day though. I sell upwards of 50 products per day and maybe I get 3-4 a week.</description>
		<content:encoded><![CDATA[<p>Thats why I like to hand process my orders. It really helps cut down on fraud orders. I would be concerned with 1 fraud order a day though. I sell upwards of 50 products per day and maybe I get 3-4 a week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Synchronium</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48911</link>
		<dc:creator>Synchronium</dc:creator>
		<pubDate>Sat, 07 Nov 2009 12:06:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48911</guid>
		<description>I&#039;ve settled on a standard format for a product id  - &quot;AA000&quot;

Two letters followed by three numbers. Then, I can check that with a simple regular expression. If any &quot;hackers&quot; change the product ID value, it either won&#039;t work, or they&#039;ll order a completely different product (if they specify another valid ID).

Prices are set in the database (alongside the product id, title, description, etc), so only one price is ever fetched for one particular product id.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve settled on a standard format for a product id  &#8211; &#8220;AA000&#8243;</p>
<p>Two letters followed by three numbers. Then, I can check that with a simple regular expression. If any &#8220;hackers&#8221; change the product ID value, it either won&#8217;t work, or they&#8217;ll order a completely different product (if they specify another valid ID).</p>
<p>Prices are set in the database (alongside the product id, title, description, etc), so only one price is ever fetched for one particular product id.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalvster</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48907</link>
		<dc:creator>Kalvster</dc:creator>
		<pubDate>Sat, 07 Nov 2009 05:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48907</guid>
		<description>Yeah, this is a good solution to catch those script kiddies.</description>
		<content:encoded><![CDATA[<p>Yeah, this is a good solution to catch those script kiddies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MS</title>
		<link>http://www.jonwaraas.com/coded-up-product_id-validation-script/comment-page-1/#comment-48905</link>
		<dc:creator>MS</dc:creator>
		<pubDate>Fri, 06 Nov 2009 20:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonwaraas.com/?p=874#comment-48905</guid>
		<description>By the way GOOD JOB
keep it up</description>
		<content:encoded><![CDATA[<p>By the way GOOD JOB<br />
keep it up</p>
]]></content:encoded>
	</item>
</channel>
</rss>

