Hi,
Does anyone have a better idea of the ajax based login code, the one that does error checking etc, and also the member registration authentication. so far i have got an idea of the following!!!
function doLoginAction() {
$filter = new Zend_Filter_Input($_POST);
if (!($login = $filter->testAlnum('login'))) {
echo "Login field should contains only alphanumeric characters.\n";
} else if (!($password = $filter->testAlnum('password'))) {
echo "Password field should contains only alphanumeric characters.\n";
} else if (!('joe' == $login && 'secret' == $password)) {
echo 'Wrong login/password.';
} else {
echo 'url:/Login/Success/';
If you have better ones i will really appreciate