I am trying to get data from one php page and pass it to another page using Ajax.
JS :
$.ajax({
      url: "action.php",
      success: function(data){           
        $.ajax({
             url: "data.php?id=data"
      }
});
action.php :
<?php    
    $test=  1;
?>
data.php :
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="" src="action.js"></script>
<?php
    $id = $_GET['id'];
    echo $id;
?>
 
     
     
     
    