I have a form, I have successfully passed the username from jquery
$.post("http://www.photographycourses.co.uk/cpl/cplfunctions.php?action=checkUsername", { username: username} );
to php script. The php script checks the database to see if the username exists:
if ($num >=1){
echo= 0;
}else{
echo= 1; }
How do I pass the variable (1/0) back to the javascript file?