function login(){ $.post('http://barker-creations.net/geopoly/ajax/login/login.php', {user: form.username.value, newUser: "false"}, function(output){ $('#debug').html(output); }); } function register(){ $.post('http://barker-creations.net/geopoly/ajax/login/login.php', {user: form.username.value, newUser: "true"}, function(output){ $('#debug').html(output); }); }