blade one hmtl label has not correct value for name element

Viewed 10

I got the folow code:

@foreach($projects as $project)
                <label> <input type="checkbox" id="cyhecki2" name= {{$project["bennenungProjekt"]}}> {{$project["bennenungProjekt"]}} </label>
@endforeach    

Some "project" has Strings like

some stuff, more stuff

in the "bennenungProjekt" field. With evry String which has a "," in i get wierd labels, like:

<label> <input type="checkbox" id="cyhecki2" name=  "IT-techniker," Aufbau Netzwerkinfrastruktur und Support ></label>

The string in this case is " IT-techniker, Aufbau Netzwerkinfrastruktur und Support " When i now send this as a post Request i only get "IT-techniker,"

0 Answers
Related