• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
excuse my ignorance

#4
[eluser]JHackamack[/eluser]
One thing to try is change :
Code:
foreach ($price as $key => $value) {
            $this->form_validation->set_rules('price['.$value.']', 'Price', 'trim|required|integer|xss_clean');
        }

to
Code:
foreach ($price as $key => $value) {
            $this->form_validation->set_rules('price['.$key.']', 'Price', 'trim|required|integer|xss_clean');
        }
because you're looking for 1,2,3,4.etc.. instead of 24.94, etc.


Messages In This Thread
excuse my ignorance - by El Forum - 03-04-2011, 11:42 AM
excuse my ignorance - by El Forum - 03-04-2011, 11:47 AM
excuse my ignorance - by El Forum - 03-04-2011, 01:03 PM
excuse my ignorance - by El Forum - 03-04-2011, 04:18 PM
excuse my ignorance - by El Forum - 03-04-2011, 04:38 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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