Join Form in AJAX + a bug PHP

Somebody solve that bug....