CodeIgniter Forums
Ajax, function call, custom method to validate data? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Ajax, function call, custom method to validate data? (/showthread.php?tid=12532)



Ajax, function call, custom method to validate data? - El Forum - 10-22-2008

[eluser]CrustyDOD[/eluser]
Another "just checking" post from me :S

When using ajax to call a URL (function), does CI have any validation tools to check what was sent to function?


Ajax, function call, custom method to validate data? - El Forum - 10-22-2008

[eluser]Pascal Kriete[/eluser]
If you're sending it as POST data, you can treat it just like a regular form submission and use the validation library. If you're using GET, you'll have to validate it manually.