Welcome Guest, Not a member yet? Register   Sign In
Form Validation with Array
#1

[eluser]Unknown[/eluser]
I'm trying to use Form Validation Class using array text-field.

By the way, user manual says:
Quote:* Using Arrays as Field Names

Or to re-populate the field you would use:

Code:
<input type="text" name="options[]" value="<?php echo set_value('options[]'); ?>" size="50" />
(http://ellislab.com/codeigniter/user-gui...ysasfields)

But "set_value" returns array when it was given array as field name.
So i think that the sample doesn't work correctly.

It will output:
Code:
<input type="text" name="options[]" value="Array"...

Is this a manual's mistake?


Messages In This Thread
Form Validation with Array - by El Forum - 12-09-2010, 10:58 PM
Form Validation with Array - by El Forum - 12-10-2010, 02:38 PM
Form Validation with Array - by El Forum - 12-10-2010, 10:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB