Here's my controller;
Code: Select all
public function login()
{
echo "hello";
}Code: Select all
function sendToPHP()
{
$.ajax({
url:"http://www.testserver.com/accounts/login",
type:"POST",
data:$('#loginForm').serialize(),
success:responseLogin,
context:this
});
}
function responseLogin(response)
{
alert(response);
}Any Ideas?
Many Thanks
Chris