everything is working just fine , but here is the problem , i want to connect somehow this files , I mean that I want to know in .js file when username is matching in database and when not , because I want to do more action in .js file , but I can not set "flag" (variable which will help me for that).
Any ideas ? thanks :)))

In more details , .js file is in registration.php file , and how you can see guys .js file is invoking with ajax AjaxUsernameEmail.php file, so I want to do somehow to know when username is matching and when not , because I want in registration.php file to do more actions (notifications) during matching

here it is not main problem and also it is working without echo and/or print. I've tested only within AjaxUsernameEmail.php file so => in mentioned file script I've replaced POST to GET method and when in browser URL I've entered .php?r_username=(name which is matching in mysql database) and have invoked echo $check->func(); is is invoked and wrote me 1 if it is matching and nothing if it is not. Here my problem is that I want somehow to know this matching issue in .js file to do more actions
–
crypticousJun 4 '12 at 19:20