そのため、Ajax を使用してフォームをサーバーに投稿していますが、フォームを URL に送信する代わりに、フォーム自体に送信しています。
ここにコードがあります
$("#psignup").click(function() {
$.ajax({
type: "POST",
url: "example/default/mobile_user_register",
data: $("#patientsignup").serialize(), // serializes the form's elements.
success: function(data)
{
alert(data); // show response from the php script.
}
});
return false; // avoid to execute the actual submit of the form.
});
ブラウザでは、from を to に送信しているように見えます。http://localhost:8080/?email=asdfa%40asd.com&password=asd&repeatpassword=&firstname=asd&username=&lastname=asd
もちろん、私が探しているのは「http://example.com/default/mobile_user_register?xxxxxxxxxxxxxx」です。これが機能しない理由を理解するのを手伝ってもらえますか?