sending data through get

sending data through get

Hi,
I was trying to use jquery for processing data. I am sending form data to  register_process.php and checking username already exist or not. If it exist i need to ask the user to re-enter user id else register the user.
  1. submitHandler: function (form) {
  2. var data =  $('.register-form').serialize();
  3. $.get(
  4. 'register_process.php',
  5. data,
  6. function(data)
  7. {
  8. $('#result').html(data);
  9. },
  10. 'html'
  11. );
  12.            }
on success this will be executed
  1. function(data)
  2. {
  3. $('#result').html(data);
  4. },
but what i should send from php file so that i can figure out whether user name already exist or not and how to do that.

Thanks,
Samir