d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Laravel Form Help Needed > Can Somebody Help Me?
Add Reply New Topic New Poll
Member
Posts: 16,004
Joined: Jul 2 2009
Gold: Locked
Feb 23 2017 05:06am
Hey guys,

I am working with the laravel framework right now, and I need to simply change the name of a form:

Right now it looks like this:

Quote
{{ Form::text('function-key['.$functionKey['idx'].'][value]',$functionKey['value'],['class' => 'form-control']) }}


The "value" attribute however, should have a different name. When I try to simply change that name, I get the error undefined index message.

I tried to simply change it like this:

Quote
{{ Form::text('function-key['.$functionKey['idx'].'][fkey_label]',$functionKey['fkey_label'],['class' => 'form-control']) }}


The thing is that the form works, however to array merge them, i need instead of the value, the fkey_label.

Somebody has experience with this, and can maybe give me a hand?
Member
Posts: 16,621
Joined: Jan 7 2017
Gold: 90.58
Feb 23 2017 09:15am
Jesus Christ whoever invented that language / syntax is cancer

This post was edited by JohnMiller92 on Feb 23 2017 09:15am
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll