I am trying to send a variable from one PHP file to another PHP file and echo it:
<script>
 $.ajax({
        type: "POST",
        url: 'AjaxCallTest.php',
        data: ({Imgname:"13"}),
        success: function() {
            alert('form was submitted');
        }
    });
<script>
And then in the receiving PHP file (AjaxCallTest.php):
<?php
    $temp = $_POST['Imgname'];
    echo $temp;
?>
but AjaxCallTest file doesn't echo anything? I need to get this variable and echo it. Note that I've included jQuery library in my code but I didn't include it in AjaxCallTest.php.