<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Pass multi-dimensional array in ajax request with jQuery</title>
	<link>http://www.robertbolton.com/pass-multi-dimensional-array-in-ajax-request-with-jquery</link>
	<description>A lot to do about nothing</description>
	<pubDate>Mon, 06 Sep 2010 19:04:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Pass multi-dimensional array in ajax request with jQuery by: Tim White</title>
		<link>http://www.robertbolton.com/pass-multi-dimensional-array-in-ajax-request-with-jquery#comment-52222</link>
		<pubDate>Sat, 26 Dec 2009 14:51:44 +0000</pubDate>
		<guid>http://www.robertbolton.com/pass-multi-dimensional-array-in-ajax-request-with-jquery#comment-52222</guid>
					<description>Here's a how-to on the methods I use to get multidimensional data passed to PHP with AJAX(including JSON stringify functions):

http://www.zulius.com/how-to/sen-multidimensional-arrays-php-with-jquery-ajax/</description>
		<content:encoded><![CDATA[	<p>Here&#8217;s a how-to on the methods I use to get multidimensional data passed to PHP with AJAX(including JSON stringify functions):</p>
	<p><a href='http://www.zulius.com/how-to/sen-multidimensional-arrays-php-with-jquery-ajax/' rel='nofollow'>http://www.zulius.com/how-to/sen-multidimensional-arrays-php-with-jquery-ajax/</a>
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Pass multi-dimensional array in ajax request with jQuery by: johno</title>
		<link>http://www.robertbolton.com/pass-multi-dimensional-array-in-ajax-request-with-jquery#comment-48665</link>
		<pubDate>Sun, 27 Sep 2009 21:13:58 +0000</pubDate>
		<guid>http://www.robertbolton.com/pass-multi-dimensional-array-in-ajax-request-with-jquery#comment-48665</guid>
					<description>I could nopt get this to work without getting a error:

On the php side:

echo   $_POST['something[]'];// retrurns false;</description>
		<content:encoded><![CDATA[	<p>I could nopt get this to work without getting a error:</p>
	<p>On the php side:</p>
	<p>echo   $_POST[&#8217;something[]&#8217;];// retrurns false;
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Pass multi-dimensional array in ajax request with jQuery by: Patryk Januszewski</title>
		<link>http://www.robertbolton.com/pass-multi-dimensional-array-in-ajax-request-with-jquery#comment-37166</link>
		<pubDate>Sun, 29 Mar 2009 22:14:17 +0000</pubDate>
		<guid>http://www.robertbolton.com/pass-multi-dimensional-array-in-ajax-request-with-jquery#comment-37166</guid>
					<description>Thanks for pointing me in the right direction! I've been having trouble passing a simple array through prototype's Ajax.Request or Updater calls.
I'd constantly come up with php receiving the value as only the last element, or an [object Object] type.
My solution for it was slightly different from yours, but pretty much the same thing:

var something = [];
something[0] = &quot;bimmer&quot;;
something[1] = &quot;empire&quot;;
Ajax.Request('ajax/process.php', { method: 'post', parameters: { 'something[]':something } } );

PHP ends up with an associative array of values -which is exactly what I needed/preferred. Thanks!</description>
		<content:encoded><![CDATA[	<p>Thanks for pointing me in the right direction! I&#8217;ve been having trouble passing a simple array through prototype&#8217;s Ajax.Request or Updater calls.<br />
I&#8217;d constantly come up with php receiving the value as only the last element, or an [object Object] type.<br />
My solution for it was slightly different from yours, but pretty much the same thing:</p>
	<p>var something = [];<br />
something[0] = &#8220;bimmer&#8221;;<br />
something[1] = &#8220;empire&#8221;;<br />
Ajax.Request(&#8217;ajax/process.php&#8217;, { method: &#8216;post&#8217;, parameters: { &#8217;something[]&#8217;:something } } );</p>
	<p>PHP ends up with an associative array of values -which is exactly what I needed/preferred. Thanks!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
