How to get Input value 1 by 1 from jquery to PHP
<pre><code>    &lt;script type="text/javascript"&gt;
    // index.php

    function get(){
        $('#age').hide();
        $.post('data.php',{ name: $('form').serialize() },


    function (output){
        $('#age').html(output).fadeIn(1000);
    });
    }

&lt;/script&gt;
&lt;body&gt;
&lt;form name="form" action="a.php"&gt;

    &lt;input type="text" name="name[]" value="1"/&gt;
    &lt;input type="text" name="name[]" value="2"/&gt;
    &lt;input type="button" value="Get" onclick="get();"/&gt;
&lt;/form&gt;

&lt;div id="age"&gt;

&lt;/div&gt;
</code></pre>

<p>but result show</p>

<pre><code>Array ( [name] =&gt; name%5B%5D=1&amp;name%5B%5D=2 ) 
</code></pre>

<p>I want to get 1 by 1 value. so that I can collect data from database running a query to based on value please, kindly  help me</p>

<p>data.php:</p>

<pre><code>&lt;?php //data.php 
   echo "&lt;pre&gt;"; 
   print_r($_POST); 
   echo "&lt;/pre&gt;"; 
?&gt;
</code></pre>
