How to send dynamic array value in another php file using jQuery
<p>Please, help me to solve this problem</p>

<p>When I am trying Single input value  then input value transfer data.php file successfully and I get input value in data.php file  to write this code echo $name=$_POST[‘name’]; but I can transfer input array value in data.php file, actually I have not enough knowledge about jquery. So anyone can help me to solve this problem. What’s the write jquery code for transferring array value in data.php file and what’s the write php code for echo. </p>

<pre><code>    &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;

    &lt;script type="text/javascript"&gt;

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

             // this code don't work in array

            // how can i transfer name[] value in data.php file

        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;
&lt;/body&gt;
</code></pre>
