This Code Is use for User name Already Exits or email id already exits here this function call using Ajax Method <?php function ckhuserid ( $udetail ){ $arr = explode ( "!@@@!" , $udetail ); if( $arr [ 1 ]== 'edit' ){ $val = executescalar ( "user" , "id" , "uname='" . $arr [ 0 ]. "' and id<>'" . $arr [ 2 ]. "' " , "" , "false" , "str" ); } else { $val = executescalar ( "user" , "id" , "uname='" . $arr [ 0 ]. "'" , "" , "false" , "str" ); } if( $val != '' ){ // alresdy exist echo "yes" ; } } ?> // JavaScript Code <script> function ckhuserid(x,cas,id){ // x=this; cas= case=registration or edit profile , id=user id on edit time uname=$(x).val(); str=uname; if(cas=='edit'){ st...