Problems with Callback Functions and Validation Class |
[eluser]mariowarner[/eluser]
Hi guys, I've ran out of time, spent about 5 hours reading, debugging, reading, debugging but still haven't found any solution to my problem. I've used the code as stated on the user_guide about creating a callback function for a form validator but it just won't work on my server (although it did work on my local machine). If you guys can try and check out the website [ http://www.floralstyle.biz/ ], I have a pre-launch registration form which accepts an email address (simple) and a captcha input. My validation code looks like this: Code: $rules['cinput'] = "required|callback_cinputCheck"; No problems with the email and confirm email code. I only have problems with the callback_cinputCheck. Below is the cinputCheck function: Code: function cinputCheck($str) It's basically the same as the one on the user_guide's Validation Class (callback function). I just can't see why I keep getting the following error message when testing it online (while I don't get the same message offline): Code: Error(s): Does it have to do with server configurations? Cos I did upload all the CI files in a zip file and extracted it on the server to avoid BINARY/ASCII file upload problems. Any help will be greatly appreciated! |
Welcome Guest, Not a member yet? Register Sign In |