<?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>Tiffany B. Brown &#187; codeigniter</title>
	<atom:link href="http://tiffanybbrown.com/tag/codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://tiffanybbrown.com</link>
	<description>A web log about web development and internet culture with frequent detours into other stuff.</description>
	<lastBuildDate>Wed, 23 May 2012 16:23:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CodeIgniter&#8217;s &#8220;Disallowed Key Characters&#8221; error revisited</title>
		<link>http://tiffanybbrown.com/2010/07/21/codeigniters-disallowed-key-characters-error-revisited/</link>
		<comments>http://tiffanybbrown.com/2010/07/21/codeigniters-disallowed-key-characters-error-revisited/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 16:19:53 +0000</pubDate>
		<dc:creator>tiffany</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[codeigniter]]></category>

		<guid isPermaLink="false">http://tiffanybbrown.com/?p=4402</guid>
		<description><![CDATA[Two years ago, I posted about CodeIgniter&#8216;s &#8220;Disallowed Key Characters&#8221; error message, and one possible cause. Recently, I stumbled across another cause: disallowed characters in a POST array. In my case, I had single-quotes as part of the variable name. My fingers mixed up PHP array syntax and HTML form syntax. &#60;!-- will cause the [...]]]></description>
			<content:encoded><![CDATA[<p>Two years ago, I posted about <a href="http://codeigniter.com/">CodeIgniter</a>&#8216;s &#8220;Disallowed Key Characters&#8221; error message, and one <a href="http://tiffanybbrown.com/2008/05/06/debugging-tip-disallowed-key-character-error-in-codeigniter/">possible cause</a>.</p>
<p>Recently, I stumbled across another cause: <strong>disallowed characters in a POST array</strong>. In my case, I had single-quotes as part of the variable name. My fingers mixed up PHP array syntax and HTML form syntax. </p>
<pre>
&lt;!-- will cause the error --&gt;
&lt;input type="text" name="fieldname['foo']" value=""&gt; 

&lt;!-- won't cause the error. besides, this is the proper syntax. --&gt;
&lt;input type="text" name="fieldname[foo]" value=""&gt;
</pre>
<p><a href="http://tiffanybbrown.com/2008/05/06/debugging-tip-disallowed-key-character-error-in-codeigniter/#comment-61676457">kalodont</a> points out this can also happen when using accented characters, such as &oacute; or &ntilde; as keys in your array.            </p>
]]></content:encoded>
			<wfw:commentRss>http://tiffanybbrown.com/2010/07/21/codeigniters-disallowed-key-characters-error-revisited/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Debugging tip: &#8220;Disallowed Key Character&#8221; error in CodeIgniter</title>
		<link>http://tiffanybbrown.com/2008/05/06/debugging-tip-disallowed-key-character-error-in-codeigniter/</link>
		<comments>http://tiffanybbrown.com/2008/05/06/debugging-tip-disallowed-key-character-error-in-codeigniter/#comments</comments>
		<pubDate>Tue, 06 May 2008 21:24:17 +0000</pubDate>
		<dc:creator>tiffany</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development & Programming]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[line breaks]]></category>
		<category><![CDATA[line feed]]></category>
		<category><![CDATA[whitespace]]></category>

		<guid isPermaLink="false">http://tiffanybbrown.com/?p=1285</guid>
		<description><![CDATA[After 6 hours of massive anxiety, stress, near tears, one pound on my desk, and some hair pulling, I tracked down the source of a nagging Disallowed Key Character error that I received while using CodeIgniter: an extra line break. The line feed (LF) and carriage return (CR) characters (and their hex code equivalents (%0D [...]]]></description>
			<content:encoded><![CDATA[<p>After 6 hours of massive anxiety, stress, near tears, one pound on my desk, and some hair pulling, I tracked down the source of a nagging <strong>Disallowed Key Character</strong> error that I received while using <a href="http://www.codeigniter.com/">CodeIgniter</a>: <strong>an extra line break</strong>.</p>
<p>The line feed (LF) and carriage return (CR) characters (and their hex code equivalents (%0D and %0A) are forbidden in CodeIgniter&#8217;s framework. The hard part is tracking down exactly <em>where</em> that extra line break character lives.</p>
<p>In my case, there was an extra line of blank, barren, not-all-that-obvious white space at the very, very end of one of my controller files, just <em>after</em> the closing <code>?&gt;</code>. </p>
<h3>Related:</h3>
<ul>
<li><a href="http://tiffanybbrown.com/2005/02/15/php_header_error_messages/">PHP header error messages</a></li>
<li><a href="http://tiffanybbrown.com/2006/03/21/four_common_p_h_p_errors_and_what_they_mean/">Four common P H P errors and what they mean</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://tiffanybbrown.com/2008/05/06/debugging-tip-disallowed-key-character-error-in-codeigniter/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

