I'm using an ajax form to send post data to a php file. And want to reload the current page with variable response from that php. Actually I need to update only the url in address bar after success response. This is my code:
    type: 'POST',
    success: function(data){
        var data;
        if(data && data != 'error') {
            window.history.pushState("string", "Title", "article.php?do=$_GET[do]&token='+data+'");
        }else{
            $('#saveStts').html('error');
        }
My response variable from php is a time stamp like 1433428606. I need this number to reload a page with the full url is :
www.test.com/admin/article.php?do=edit&token=1433428606. I tried but always reload with data instead of timestamp from a server. Please be advice.
 
     
    