jQuery - sending data and taking the datas in php side
<p>this is my html form</p>

<pre><code>{foreach value=artist2 from=$artist}

                  &lt;form name=form1 method=post action=action_page.php onsubmit='return validate(this)'&gt;

                &lt;br /&gt;

                &lt;span class="checkArtist" id="hide_{$artist2.MOVIE_ID}-{$artist2.PERSON_ID}-374"&gt;&lt;input type="checkbox" name="artist[]" value="{$artist2.MOVIE_ID}-{$artist2.PERSON_ID}-374"  /&gt;{$artist2.NAME_SURNAME}&lt;br /&gt;&lt;/span&gt;


                {/foreach}
                &lt;p align="right"&gt;
                &lt;a style="float: right" &gt;&lt;br /&gt;
                    &lt;input type="button" name="checkArtistButton" value="Seçilenleri Sil" onclick="deleteData('artist[]');" id="ajaxCheckbox" /&gt;&lt;/a&gt;&lt;/p&gt;
                &lt;br &gt;
                  &lt;/form&gt;
</code></pre>

<p>in jquery side </p>

<p>i take text value and id</p>

<pre><code>   function AddData(par){

        var artistName =  $("input[name='"+par+"']").attr('id') + '-'+$("input[name='"+par+"']").val();

        alert(artistName);

       $.post('/management/AddDataAjax2', 
        {
           data: JSON.stringify({"artistName": "artistName"})
        },
        function(response){
            alert("Başarıyla silindi");
        });
    }
</code></pre>

<p>as you see above code, when i alert i saw all needed datas </p>

<p><img src="http://i.stack.imgur.com/uUvGf.png" alt="enter image description here"></p>

<p>I think data does not go to  my php side</p>

<p>This is my php side but nothing comes</p>

<pre><code>  public function AddDataAjax2() {

        $json = $_POST['json'];
        $data = json_decode($json, true);
        $arr = explode("-",$data);


        $personID = NCore::db('PERSON')-&gt;select('ID')-&gt;eq('NAME_SURNAME', $arr[2])-&gt;fetch(FETCH_MODEL_BASE, true);
            if($personID)
                NCore::db('PERSON_MOVIE')-&gt;insertAsArray(array('PERSON_ID' =&gt;$personID-&gt;id,'MOVIE_ID'=&gt; $arr[0],'JOB_ID' =&gt; $arr[1]));

     }
</code></pre>
