How to get back data from php variable to jquery variable using jquery $.POST method
<p>In the below code the $.POST method passes two variables to the php file empProfile.php which retrieves the employee profile from the database. Know I want to receive ID and Name from the php file to the jquery variables. Can someone help me.</p>

<pre><code>data = {
        personnelNo: $('#personnelNo').val(),
        cnic: $('#cnic').val() 
        } //end of data

$.post( 
       "checkEmployee.php",
       data,
       function(data) {
                        var ID =; Name=;


                      } // end of function

      ); // end of post
    //} //end of if statement
}); // end of blur
</code></pre>
