<?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: Send multidimensional arrays to PHP with jQuery and AJAX</title>
	<atom:link href="http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/</link>
	<description>Advanced Application Development</description>
	<lastBuildDate>Tue, 07 Feb 2012 19:41:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: ali smith</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-441</link>
		<dc:creator>ali smith</dc:creator>
		<pubDate>Sun, 13 Nov 2011 06:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-441</guid>
		<description>hi

Your article is very useful

Thank&#039;s Tim White

;)</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>Your article is very useful</p>
<p>Thank's Tim White</p>
<p>;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim White</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-400</link>
		<dc:creator>Tim White</dc:creator>
		<pubDate>Fri, 28 Oct 2011 17:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-400</guid>
		<description>@Pirumpi - thanks, your solution is valid for jQuery 1.4.0+, and I have updated this article to reflect that.</description>
		<content:encoded><![CDATA[<p>@Pirumpi - thanks, your solution is valid for jQuery 1.4.0+, and I have updated this article to reflect that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pirumpi</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-399</link>
		<dc:creator>Pirumpi</dc:creator>
		<pubDate>Fri, 28 Oct 2011 15:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-399</guid>
		<description>I hope people read this comment and don&#039;t make the mistake the author made on using any Yahoo plugging this is a real solution 

jQuery code:


var work = new Array;

$(document).ready(function(){
    work.push({
        &#039;id&#039;:1,
       &#039;name&#039;:&#039;carlos&#039; 
    });
    work.push({
        &#039;id&#039;:2,
       &#039;name&#039;:&#039;jenny&#039; 
    });
    work.push({
        &#039;id&#039;:3,
       &#039;name&#039;:&#039;fatu&#039;, 
    });
    work.push({
        &#039;id&#039;:4,
       &#039;name&#039;:&#039;chay&#039; 
    });
    
    $(&quot;#coco&quot;).load(&#039;test.php&#039;,{
        &#039;myArray&#039;:work
    });
});


PHP Code:
$results = $_POST[&#039;myArray&#039;];

for($counter = 0; $counter &lt; count($results); $counter++){
    echo $results[$counter][&#039;name&#039;] . &quot;&quot;;
}</description>
		<content:encoded><![CDATA[<p>I hope people read this comment and don't make the mistake the author made on using any Yahoo plugging this is a real solution </p>
<p>jQuery code:</p>
<p>var work = new Array;</p>
<p>$(document).ready(function(){<br />
    work.push({<br />
        'id':1,<br />
       'name':'carlos'<br />
    });<br />
    work.push({<br />
        'id':2,<br />
       'name':'jenny'<br />
    });<br />
    work.push({<br />
        'id':3,<br />
       'name':'fatu',<br />
    });<br />
    work.push({<br />
        'id':4,<br />
       'name':'chay'<br />
    });</p>
<p>    $("#coco").load('test.php',{<br />
        'myArray':work<br />
    });<br />
});</p>
<p>PHP Code:<br />
$results = $_POST['myArray'];</p>
<p>for($counter = 0; $counter &lt; count($results); $counter++){<br />
    echo $results[$counter][&#039;name&#039;] . &quot;";<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Send complex json request &#124; 听风看海</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-394</link>
		<dc:creator>Send complex json request &#124; 听风看海</dc:creator>
		<pubDate>Mon, 17 Oct 2011 14:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-394</guid>
		<description>[...] White has written a very good article about [...]</description>
		<content:encoded><![CDATA[<p>[...] White has written a very good article about [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harry jeant</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-382</link>
		<dc:creator>harry jeant</dc:creator>
		<pubDate>Sun, 14 Aug 2011 05:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-382</guid>
		<description>Hey method three works. HOwever I tried the function without setting the content type and processdata option. Im not sure why it still works though</description>
		<content:encoded><![CDATA[<p>Hey method three works. HOwever I tried the function without setting the content type and processdata option. Im not sure why it still works though</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luan</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-380</link>
		<dc:creator>luan</dc:creator>
		<pubDate>Tue, 09 Aug 2011 19:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-380</guid>
		<description>thank a lot</description>
		<content:encoded><![CDATA[<p>thank a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyand</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-373</link>
		<dc:creator>Wyand</dc:creator>
		<pubDate>Thu, 21 Jul 2011 11:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-373</guid>
		<description>Very nice article. Was very useful.</description>
		<content:encoded><![CDATA[<p>Very nice article. Was very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-364</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Thu, 23 Jun 2011 17:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-364</guid>
		<description>Method 3 &quot;almost&quot; works for me, and comes the closest out of the provided examples. However, my problem is that I&#039;m sending requests to a script which also handles traditional form &quot;post&quot; requests.

The client has a multi-select named &quot;select[]&quot;. Submitting that in a form causes PHP to interpret $_POST[&#039;select&#039;] as a PHP array.

However, I need to also push that same data via AJAX. The scripts must work for both the form submission as well as the AJAX request.

Any suggestions?</description>
		<content:encoded><![CDATA[<p>Method 3 "almost" works for me, and comes the closest out of the provided examples. However, my problem is that I'm sending requests to a script which also handles traditional form "post" requests.</p>
<p>The client has a multi-select named "select[]". Submitting that in a form causes PHP to interpret $_POST['select'] as a PHP array.</p>
<p>However, I need to also push that same data via AJAX. The scripts must work for both the form submission as well as the AJAX request.</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rojkoong</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-362</link>
		<dc:creator>rojkoong</dc:creator>
		<pubDate>Fri, 27 May 2011 01:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-362</guid>
		<description>Good article. This is very useful for me.</description>
		<content:encoded><![CDATA[<p>Good article. This is very useful for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Junaid</title>
		<link>http://www.zulius.com/how-to/send-multidimensional-arrays-php-with-jquery-ajax/comment-page-1/#comment-361</link>
		<dc:creator>Junaid</dc:creator>
		<pubDate>Mon, 16 May 2011 18:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulius.com/?p=656#comment-361</guid>
		<description>Hi,
Good article!
I used first method and it is more useful.

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Good article!<br />
I used first method and it is more useful.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

