[eluser]ifew[/eluser]
[quote author="cwt137" date="1234131367"][quote author="ifew" date="1234095714"]hello
patch from cwt137
i can't use this, it return first field value to every input[/quote]
Can you post a test case where my patch doesn't work? Then I can see what I can do to fix it.[/quote]
in view
Code:
<input type=‘text’ name=“optoin[]” size=“30” value=”<?=set_value(‘optoin[]’); ?>”/>
<input type=‘text’ name=“optoin[]” size=“30” value=”<?=set_value(‘optoin[]’); ?>”/>
<input type=‘text’ name=“optoin[]” size=“30” value=”<?=set_value(‘optoin[]’); ?>”/>
and set in rule
in rule config
Code:
array(
‘field’ => ‘optoin[]’,
‘label’ => ‘lang:user_option’,
‘rules’ => ‘trim|htmlspecialchars|xss_clean’
)
it's return value from first field to all
but if use indexing number to optoin[] field and rule. (such as optoin[0],optoin[1],..)
it's ok
ps. sorry i'm bad english