POST Dynamic Data or Mutiple Data in PHP
<p><img src="http://i.stack.imgur.com/b1G6p.jpg" alt="Snap of edit form">I am new in PHP.I have  a js file </p>

<pre><code>    var sites = [
 //Texte anime
  {url:" http://carouselinfo.com/canal/", duration:9},
 //Texte anime
  {url:" http://carouselinfo.com/canal-2/", duration:9}, 
  //Intro detallee
 {url:"http://carouselinfo.com/index-t1.html", duration:35},
 //CTA
 {url:"http://carouselinfo.com/index-t2.html", duration:35},
     //Football
  {url:"http://carouselinfo.com/twitter-ligue/", duration:100},  
 //Texte anime
  {url:" http://carouselinfo.com/canal-2/", duration:9},     
  //TrailersClub.com
  {url:"http://trailersclub.com/?lang=fr", duration:480},    
 //Heure
 {url:"http://carouselinfo.com/heure", duration:8},
 //Meteo
 {url:"http://carouselinfo.com/meteo", duration:12},
 //Texte anime
  {url:" http://carouselinfo.com/canal-cine/", duration:9},
 //Cine
 {url:"http://carouselinfo.com/cine/index-t1.html", duration:150},
  //Texte anime
  {url:" http://carouselinfo.com/canal-2/", duration:9}, 
 //Heure
 {url:"http://carouselinfo.com/heure", duration:8},
 //Meteo
 {url:"http://carouselinfo.com/meteo", duration:12},
 //Texte anime
  {url:" http://carouselinfo.com/canal-cine/", duration:9},
   //Cine

 ];
</code></pre>

<p>PHP code of sanp </p>

<pre><code>  for($i=0;$i&lt;count($html);$i++)
 {
 echo '&lt;ul class="link" id="link"&gt;';
 echo "&lt;li&gt;".$html[$i]."&lt;/li&gt;";
 echo '&lt;span class="main"&gt;'.$duration[$i].'&lt;/span&gt;';
 echo "&lt;/ul&gt;";
   }   
</code></pre>

<p>What I have to do if some one change any data using edit function.Above there is snap of my page so if someone do change in first row only in url then it post the data and data save in js file at row 3 only because if I change on other data or url of js then it will lead to problem so I want to update it at that particular row using POST in AJAX.The problem is there is variable row so how to update at that particular row in js file</p>
