Error when validating credit card with multiple parameters in valid_cc_number rule |
@InsiteFX Great and simple solution! But change the single quotes to double quotes to get the value of $cardType...
PHP Code: $validation->setRules(['card_number' => "required|valid_cc_number[$cardType]"]);
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
Error when validating credit card with multiple parameters in valid_cc_number rule - by funcion - 06-03-2021, 02:51 PM
RE: Error when validating credit card with multiple parameters in valid_cc_number rule - by paliz - 06-03-2021, 09:43 PM
RE: Error when validating credit card with multiple parameters in valid_cc_number rule - by InsiteFX - 06-04-2021, 01:00 AM
RE: Error when validating credit card with multiple parameters in valid_cc_number rule - by includebeer - 06-05-2021, 03:18 PM
|