Welcome Guest, Not a member yet? Register   Sign In
MY_Form_Validation w/ spam and CSRF protection
#11

[eluser]mighty_falcon[/eluser]
It is just out of the box, and it is not set at all, even the first time the controller is loaded. When I am viewing the source of the form in the browser the value of the hidden field is empty, and it of course sends a validation error (this field is required...).

Could you post a sample code on how you are using the nonce function in the controller?

The way i have it setup in my controller is basically this:

Code:
$this->form_validation->nonce();

if ($this->form_validation->run('user_details') == TRUE) { // validation has been passed
...


Messages In This Thread
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-07-2010, 10:50 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-07-2010, 02:28 PM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-07-2010, 04:16 PM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-08-2010, 03:17 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-08-2010, 04:00 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-08-2010, 04:52 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-08-2010, 05:27 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 06-08-2010, 06:55 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-09-2010, 04:49 PM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-10-2010, 12:31 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-10-2010, 01:46 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-10-2010, 02:48 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-10-2010, 11:34 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-11-2010, 10:53 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-12-2010, 03:50 AM
MY_Form_Validation w/ spam and CSRF protection - by El Forum - 07-12-2010, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB