CodeIgniter Forums
Form Validation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Form Validation (/showthread.php?tid=29707)

Pages: 1 2 3


Form Validation - El Forum - 04-19-2010

[eluser]$ilovephp[/eluser]
when dealing with forms, i suggest you use Form Validation instead of Validation.


Form Validation - El Forum - 04-20-2010

[eluser]invision[/eluser]
Sorry for the late reply guys. Yep, I'm now using Form Validation and it's working a dream.

Main things to tackle now are Database Insertion and Mailing Form Contents.


How would I best escape data going into the database? Any CI functions worth a look, or just stick with mysql_real_escape_string?


Form Validation - El Forum - 04-21-2010

[eluser]CroNiX[/eluser]
Check out the "notes" on the "insert" and "update" pages in the manual for the database. If you use active record:
Quote:Note: All values are escaped automatically producing safer queries.
http://ellislab.com/codeigniter/user-guide/database/active_record.html


Form Validation - El Forum - 04-21-2010

[eluser]invision[/eluser]
Many thanks for the reply.

I will give this a shot.

I've got 1 or 2 more queries on validation, but not totally urgent Smile


Thanks again for your time.