here is my code. 
I can not pass the edit_id to script and passback to <div class="modal fade" id="copy3" role="dialog"> 
please help.
the row[0] is not global, that why I can't get it in the same page. so I want to post again, to the script, and then , use $_POST or $_GET, but not working...
<PHP---here is a link>
    ......
    <td align="center">[<a class="get_copy3" href="<? echo $_SERVER["PHP_SELF"]."#?edit_id=$row[0]";?>">Copy3</a>]</td>
    ....
    <SCRIPT> (this is a popup script)
        $(".get_copy3").on("click", function(e) {
                        e.preventDefault();             
                        var $edit_id = $(this).data('edit_id');
                        document.cookie = $edit_id ;
                        $('#copy3').modal('show');
                    });
        .....
   <SCRIPT>
<php and html--------here is a popup>    
    <div class="modal fade" id="copy3" role="dialog"> 
    <? echo $edit_id; ?>
    </div>
 
    