Welcome Guest, Not a member yet? Register   Sign In
Need Urgent but Perfect help in jQuery and CI Integration
#5

[eluser]Mizanur Islam Laskar[/eluser]
Yes, imparo really tried his best to help me out there, but I gave up there in my thread because he told me to make my all ajax-related scripts to work for GET request, because of CI's speial security mechanism....


I've already applied that url, but seems you didn't see that in my another thread:
Code:
....
email: {
    required: true,
    email: true,
    remote: "http://localhost/projects/inbook/index.php/SignUp/confirm_email"
    },
....

Ok, forget about the TAB-related issue. I'll think about that later myself. Lets concentrate on this remote-scripting if you wish. BTB, I've also illustrated my controller funcion in that thread:

Code:
function confirm_email()
{
$email = $this->input->post('email');
$this->load->model('check_model');
$valid_email = $this->check_model->check_email($email);
echo ($valid_email == 0) ? 'false' : 'true';
}
But according to the CI manual, I also tried with
Code:
$this->input->post('email')
, but no improvement.

And here is my model function also:

Code:
function check_email($email)
{
$valid = 0;
$this->load->database();
$query=$this->db->getwhere('user_profile',array('user_email'=>$email));
$valid += $query->num_rows();
return $valid;
}


Messages In This Thread
Need Urgent but Perfect help in jQuery and CI Integration - by El Forum - 07-01-2008, 02:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB