Welcome Guest, Not a member yet? Register   Sign In
Dynamic Form Input Boxes
#2

[eluser]garymardell[/eluser]
wrap username[] as a string and you had the set_value wrong. No idea if that will work, i suggest using the latter code.

Code:
$username =  array('id'=>'username', 'name' => 'username[]', 'value'=>set_value('username[]') );

However i'd recommend not using the form helper (other than maybe form_open()) as it is not needed and will only further complicate things if someone else needs to edit it (someone who just knows html for example or non ci user).

Code:
<input type="text" id="username" name="username[]" value="<? echo set_value('username[]');?>" />

http://ellislab.com/codeigniter/user-gui...ysasfields


Messages In This Thread
Dynamic Form Input Boxes - by El Forum - 12-05-2009, 06:14 PM
Dynamic Form Input Boxes - by El Forum - 12-05-2009, 06:24 PM
Dynamic Form Input Boxes - by El Forum - 12-07-2009, 04:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB