<?php foreach($rows as $row) {?> <input id="sort_order_<?php echo $row; ?>"> <?php } ?> Netbins says that they say a bad value for idi, since this attribute should not have empty spaces (whitespaces). The same thing happens with name. Tell me where it can be corrected?