Form Validation

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

#22
[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?

#23
[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-gui...ecord.html

#24
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.