Welcome Guest, Not a member yet? Register   Sign In
Protype ajax validation problem

Maybe adding a check on false...Running out of ideas Smile

$text = trim($this->obj->input->post('value'));
if(empty($text) || $text == FALSE)
    echo 'This field is required.';

Nope, that didn't work either.

Are you using the CI validation library, then?

Perhaps you can post your other working code and the controller.

Okay, now that I am done kicking myself, over, and over, and over, and over... This issue has been fixed.

Turns out, if the $this->input->post('value') had no value I was skipping my validation routines entirely. I've been starring at this thing so much I just glossed over that line 1000 times or so in the last 2 days.

Thank you for the help, but that line was off in and ajax controller and I stopped looking at it yesterday.


Glad you figured it out Smile

Theme © iAndrew 2016 - Forum software by © MyBB