jeudi 12 mai 2016

Get value of dynamically generated textarea in Laravel controller

How do I get the value of these dynamically generated textarea? Normally in the controller it is possible to use request object to get the values of statically defined fields, doing thus: $request->fieldname since this is not the case, how do I get the value of such fields?

@foreach($splitProcedure as $procedureSelected)
                           {!! Form::hidden($trimWhitepsace = preg_replace('/[^A-Za-z0-9]/', "", $procedureSelected)) !!}
                            <TH>{!! $procedureSelected !!}</TH><TH>DESCRIPTION</TH>
                        <TR><TD class="col-xs-12 col-md-6"><div ><p>You have used <span class="css-button" id="counter2"></span> words.</p>{!! Form::textarea($trimWhitepsace .'desc', Input::old($trimWhitepsace .'desc'), ['class'=>'mid first-input-div', 'placeholder'=>'Please, within 200-250 characters describe what the company is about', 'id'=>$trimWhitepsace .'desc']) !!}{!! Form::hidden('hiddenDescription', $trimWhitepsace .'desc') !!}</div></TD>
                        <TD class="col-xs-12 col-md-6"><div>{!! Form::text($trimWhitepsace, Input::old($trimWhitepsace), ['class'=>'mid first-input-div', 'placeholder'=>'enter price', 'id'=>$trimWhitepsace]) !!}{!! Form::hidden('hiddenPrice', $trimWhitepsace .'price') !!}</div></TD><TD></TD></TR>
                      @endforeach



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire