Welcome Guest, Not a member yet? Register   Sign In
custom validation rule for IP in form
#10

(12-13-2020, 04:18 PM)includebeer Wrote: How about the check() function? http://codeigniter.com/user_guide/librar...te-1-value

PHP Code:
$validation->check($value'required'); 

Maybe you can call your validation with something like this:
PHP Code:
if ( ! $validation->check($request->getIPAddress(), 'yourIpValidationRule')) {
    // Throw exception...

yes!! amazing!! 
went thru this guide 3-4 times last 48 hours and never give much thought on this.
Thank you, you literally saved my week.[url=https://www.spellchecker.net/amazing][/url]
Reply


Messages In This Thread
custom validation rule for IP in form - by xPooky - 12-12-2020, 05:29 PM
RE: custom validation rule for IP in form - by xPooky - 12-13-2020, 04:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB