Welcome Guest, Not a member yet? Register   Sign In
set_value, set_select, set_radio
#6

[eluser]pickupman[/eluser]
[quote author="WanWizard" date="1274819719"]In principle every piece of user input requires validation, as it can be manipulated.
You can work around that by validating them with an empty rule set.[/quote]
+1...at least use
Code:
$this->form_validation->set_rules('field', 'field name', 'trim');

Trim may a little silly for radios and checkboxes, but you never know when some will manipulate your forms to be a little mischievous.


Messages In This Thread
set_value, set_select, set_radio - by El Forum - 05-25-2010, 09:14 AM
set_value, set_select, set_radio - by El Forum - 05-25-2010, 09:17 AM
set_value, set_select, set_radio - by El Forum - 05-25-2010, 09:19 AM
set_value, set_select, set_radio - by El Forum - 05-25-2010, 09:35 AM
set_value, set_select, set_radio - by El Forum - 05-25-2010, 09:41 AM
set_value, set_select, set_radio - by El Forum - 05-25-2010, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB