• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validation with an array

#1
[eluser]Felipe Diesel[/eluser]
Hi,

I was playing with CodeIgniter for a while and now I started my real first project.

Usually I use inputs like this:
Code:
<input name="person[name]" type="text" />
<input name="person[address]" type="text" />
So when the form is submitted I have an array in $_POST["person"]. But I got a problem when I try to use the Validation Class with this because the class just support "direct fields".

There's any way to make it works? Or I will need to leave the array scheme?

P.S.: I don't like the second choice because sometimes I have to submit data in different tables and I specify the table in the input field to do it more transparent.


Messages In This Thread
Validation with an array - by El Forum - 07-17-2007, 10:37 PM
Validation with an array - by El Forum - 07-18-2007, 02:06 AM
Validation with an array - by El Forum - 07-18-2007, 06:24 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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