I have an input which can be decimal or numeric. I want to use this rule:
$this->form_validation->set_rules('price', 'Price', 'decimal|numeric');
But i think the rules in form_validation helper not working with "or" statement. If the price is something like that "149.99" it's valid but if the price is "150" it's not.
Am i missing something or isn't it possible to use something like that:
$this->form_validation->set_rules('price', 'Price', 'decimal or numeric');