• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to fix this error?

#11
[eluser]chmod[/eluser]
[quote author="ppopowicz" date="1246989329"]First, nowhere in the above code do you set the sig_key in the session, so when the callback is being tested, it will return FALSE every time causing the validation to fail. Even then you are not requiring it in your validation rule.

Second, you didn't rework the code at all. You are still using the POST data to set variables before you are validating the data, which you are then using to make calls to the database.

Clean up your code, there are many more issues with the code than just the validation.[/quote]

my sig_key genrate in my view page.
http://192.168.134.135/sig/
the controller sig will set sig_key into the session(I using http://www.ledide.be/sig/sig_read_me.html source code).
so, when I validate sig_key, the sig_key is in the table ci_session.
this is true $this->session->userdata('sig_key') has a value because I can see it in the table;


if I submit username,password and sig_key(this will be a image, which is the URL http://192.168.134.135/sig/), the validation will be ok and passed.
but when I submit username, password,but not submit sig_key(not input a value), the error will be occur.

what can I do?


Messages In This Thread
how to fix this error? - by El Forum - 07-06-2009, 04:08 AM
how to fix this error? - by El Forum - 07-06-2009, 04:28 AM
how to fix this error? - by El Forum - 07-06-2009, 06:32 AM
how to fix this error? - by El Forum - 07-06-2009, 07:12 AM
how to fix this error? - by El Forum - 07-06-2009, 07:35 AM
how to fix this error? - by El Forum - 07-06-2009, 07:50 AM
how to fix this error? - by El Forum - 07-06-2009, 08:27 AM
how to fix this error? - by El Forum - 07-06-2009, 08:49 AM
how to fix this error? - by El Forum - 07-06-2009, 09:03 PM
how to fix this error? - by El Forum - 07-07-2009, 06:55 AM
how to fix this error? - by El Forum - 07-07-2009, 08:38 AM
how to fix this error? - by El Forum - 07-07-2009, 10:28 AM
how to fix this error? - by El Forum - 07-07-2009, 09:14 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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