<td><input name="expo" type="number" class="form-control" placeholder="Collaboration XP gained" id="add-task-form-expo" required></td> </tr> </tbody> </table> <div class="form-group"> <label for="add-task-form-location">Location</label> <br> <select name="location" class="selectpicker" id="add-task-form-location"> <optgroup label="Faculty"> <?php include "building.class.php"; $b = new Building(); $b->returnB(4); ?> </optgroup> <optgroup label="Dorm"> <?php $b->returnB(1); ?> </optgroup> <optgroup label="Library"> <?php $b->returnB(3); ?> </optgroup>