I have this Form that sends data to my Database like this 1, 2, 3, 4 but in the selection it is in boxes [1][2][3][4]
<form id="form" action="" method="post">
<div>
<select name="Name[]" id="ID" multiple="multiple" class="Class" value="if(isset($name){echo $name;}else{echo '';}">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<input type="submit" value="submit">
</div>
</form>
But when i callback the values from database to the form again, I get it like this [1, 2, 3, 4] in single box, How can i callback the values in single boxes for each value And make it already SELECTED in the form? (I use multiple select semantic ui framework)