User name: <input type="text" name="username"/><br/><br/><br/> Password: <input type="password" name="password"/><br/><br/><br/> Email: <input type="text" name="email"/><br/><br/><br/> Birthday: <input type="text" name="birth"/><br/><br/><br/> Job: <input type="text" name="job"/><br/><br/><br/> Admin: <input type="radio" name="admin" value="1"/> User: <input type="radio" name="admin" value="0"/><br/><br/><br/> Credit limit: <input type="text" name="credit"/><br/><br/><br/> Address: <textarea cols="30" name="address"></textarea><br/><br/><br/> Add user interests:<br/> <?php //display category in html select element include '../subcategory.php'; $data = []; $subcatAction = new subcategory(); $result = $subcatAction->getSubCategory(); while ($row = mysqli_fetch_array($result)) { $data[] = $row; } foreach ($data as $key => $value) { ?> <input type="checkbox" name="interset[]" value="<?php echo $value[2]; ?> "/> <?php echo $value[2]; ?> <br/> <?php } ?>