• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved]Custom Validation?

#1
[eluser]brucebat[/eluser]
Hi all,

I have been looking into the form validation and I want to make some of my own validation functions.

Using this : http://ellislab.com/codeigniter/user-gui...ationrules

However it does not go into detail in making your own validation functions.

For example I am needing a function that will check a field has a correctly formatted time of (HH:MM:SS). There does not appear to be anything like that in Codeigniter after googling.

Any sample code or links that will help me get started?
Thanks


These are all the validation functions I want to make:
Quote:-Field 1 is not greater than Field 2
-Field[0]1 is not the same as Field[1]1
-Time[0] is not greater than Time[1] or vice versa
-Time[x] is valid format.

Example code of someones own validation would be great so I can work from it.

Thanks for your time!

Cheers


Messages In This Thread
[solved]Custom Validation? - by El Forum - 08-02-2011, 11:56 AM
[solved]Custom Validation? - by El Forum - 08-02-2011, 12:36 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 01:14 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 01:15 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 01:20 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 01:33 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:22 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:28 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:30 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:34 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:35 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:39 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:41 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:43 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:44 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:50 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:53 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:57 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 02:58 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 03:13 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 03:14 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 03:16 PM
[solved]Custom Validation? - by El Forum - 08-02-2011, 03:18 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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