<?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: Function for dealing with quotes in input fields in HTML/PHP</title>
	<atom:link href="http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/</link>
	<description>Resources for PHP Programmers and Small Business Operators</description>
	<lastBuildDate>Mon, 29 Jun 2009 01:34:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Menno</title>
		<link>http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/comment-page-1/#comment-165</link>
		<dc:creator>Menno</dc:creator>
		<pubDate>Tue, 21 Apr 2009 20:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/#comment-165</guid>
		<description>sorry should be this without the spaces on both sides of quot
$kop = ereg_replace(&#039;&quot;&#039;,&quot;&amp; quot ;&quot;, $kop);</description>
		<content:encoded><![CDATA[<p>sorry should be this without the spaces on both sides of quot<br />
$kop = ereg_replace(&#8216;&#8221;&#8216;,&#8221;&amp; quot ;&#8221;, $kop);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Menno</title>
		<link>http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/comment-page-1/#comment-164</link>
		<dc:creator>Menno</dc:creator>
		<pubDate>Tue, 21 Apr 2009 20:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/#comment-164</guid>
		<description>Why not have this on top of your form code instead?

/* Replace on submit into MySQL database */
$formfield = ereg_replace(&#039;&quot;&#039;,&quot;&quot;&quot;, $formfield);</description>
		<content:encoded><![CDATA[<p>Why not have this on top of your form code instead?</p>
<p>/* Replace on submit into MySQL database */<br />
$formfield = ereg_replace(&#8216;&#8221;&#8216;,&#8221;&quot;&#8221;, $formfield);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Susurs</title>
		<link>http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/comment-page-1/#comment-51</link>
		<dc:creator>Susurs</dc:creator>
		<pubDate>Tue, 13 May 2008 03:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/#comment-51</guid>
		<description>Great solution! Thanks!</description>
		<content:encoded><![CDATA[<p>Great solution! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bretto36</title>
		<link>http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/comment-page-1/#comment-38</link>
		<dc:creator>bretto36</dc:creator>
		<pubDate>Mon, 24 Mar 2008 21:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/#comment-38</guid>
		<description>The problem with just removing the slashes is that if i had an input field like so .. input type=&#039;text&#039; value=&#039;John&#039;s&#039; then the value wouldn&#039;t be saved properly, an even more complex problem is if i had value=&quot;John&#039;s &quot;stuff&quot; &quot; I wouldn&#039;t be able to change the quotes around the attribute. 
Magic Quotes is removed/deprecated as of PHP 6. This function should also work on PHP 6.
Thanks for the comment Dan, gave me somethign to think about. And also you are the first person to comment on my blog wowsers!</description>
		<content:encoded><![CDATA[<p>The problem with just removing the slashes is that if i had an input field like so .. input type=&#8217;text&#8217; value=&#8217;John&#8217;s&#8217; then the value wouldn&#8217;t be saved properly, an even more complex problem is if i had value=&#8221;John&#8217;s &#8220;stuff&#8221; &#8221; I wouldn&#8217;t be able to change the quotes around the attribute.<br />
Magic Quotes is removed/deprecated as of PHP 6. This function should also work on PHP 6.<br />
Thanks for the comment Dan, gave me somethign to think about. And also you are the first person to comment on my blog wowsers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/comment-page-1/#comment-37</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 24 Mar 2008 15:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.breathteching.com/2008/03/24/function-for-dealing-with-quotes-in-input-fields-in-htmlphp/#comment-37</guid>
		<description>Perhaps just disable magic quotes or use stripslashes()?

Dan</description>
		<content:encoded><![CDATA[<p>Perhaps just disable magic quotes or use stripslashes()?</p>
<p>Dan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
