Passing JS array to PHP page
<p>i am capturing the value of changed fields via JS Event and capturing that data into temp1 array, say, if u change field name "name", then it will get the field name "id" and will store it into temp1. but the main problem is how can i pass this array to a php form processing page, where i can get the value of this temp1.    </p>

<p>i tried using JSON but it's not helping me out.</p>

<p>the code which i tried was: $.post('/somepage.php', temp1); but it didnt work.</p>

<p>please help me out with this.</p>

<p>and i included jquery.js lib in the page.</p>

<pre><code>  &lt;script type="text/javascript"&gt;
  var temp1 = new Array();

  function onChangeTest(changeVal)
  {    
 //alert("Field u changed was: " + changeVal.id) 

 temp1.push(changeVal.id);

 tmsg = "Fields u changed so far are:"
 for(var i=0;i&lt;temp1.length;i++)
 {
 //document.write("&lt;b&gt;temp1["+i+"] is &lt;/b&gt;=&gt;"+temp1[i]+"&lt;br&gt;");
 tmsg = tmsg + " " + temp1[i];
 }
 alert(tmsg);
 }
 //$.post('/somepage.php', temp1);
 &lt;/script&gt;
</code></pre>
