Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Again About Validation...
  • Hey there! Here's my problem... Validation class acts weird! I try to validate password. I have two fields. The second one is simple confirm for first. They must exactly match! http://pastie.org/1828463 In other words, validation rules do this: 1) Both fields must be submitted,
    2) First field must be atleast 6 symbols long, but not longer than 255,
    3) If first field is okey, then second field must be exact like first; Here's scenario...
    I submit "password" - all works.
    I submit "123456" - I failed. Why? How can I fix it?
  • P.S. Maybe problem is somewhere else.... http://pastie.org/1829153
  • Anyone? I need to know atleast is it my or Fuel's problem.
  • As always: tell us what happens. "I failed" tells me nothing. What validation messages are output? Or are you getting an exception?
  • With "I failed" I meant that $validation->run() returned 'false'.
    I fix it myself. I used 'match_value' instead of 'match_field' for passwordRepeatedly!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion