foreach ($type as $value) {
        ?>
<option value="<?php 
        echo $value['room_id'];
        ?>
"><?php 
        echo $value['room_description'];
        ?>
</option><?php 
    }
    ?>
</select>

<label>Rate :</label><input type="text" name="rate" value="0">
<label>Season :</label><select name="season"><?php 
    $type = getSeasons();
    foreach ($type as $value) {
        ?>
<option value="<?php 
        echo $value['season_id'];
        ?>
"><?php 
        echo $value['season_name'];
        ?>
</option><?php 
    }
    ?>
</select>
<div class="controls">
<input type="reset" value="Reset" class="form-reset">
<input type="submit" value="Save" name="submit" class="form-submit"> 
Example #2
0
<input type="text" id="search" placeholder="Type to search">
</div>
<!--<input type="submit" name="update" value="Update" /><input type="submit" name="delete" value="Delete" />-->
<table id="tablesorter-demo" class="tablesorter" cellspacing="0">
<thead>
<tr class="table-header"><th width="20"><input type="checkbox" name="all">  </th>
<th width="200">Season_id</th>
<th>Name</th>
<th>Stat Date</th>
<th>End Date</th>
<th>Actions</th></tr>
</thead>
<tbody>
<?php 
    $numrows = count(getSeasons());
    // find out total pages
    $totalpages = ceil($numrows / $rowsperpage);
    // get the current page or set a default
    if (isset($_GET['currentpage']) && is_numeric($_GET['currentpage'])) {
        // cast var as int
        $currentpage = (int) $_GET['currentpage'];
    } else {
        // default page num
        $currentpage = 1;
    }
    // end if
    // if current page is greater than total pages...
    if ($currentpage > $totalpages) {
        // set current page to last page
        $currentpage = $totalpages;
<!--<label>Room Type :</label>--><input type="hidden" name="cat" value="<?php 
        //$cat=getRoomType($_POST['room_type']);  echo $cat[0]['category'];
        ?>
" disabled> <?php 
        ?>
<!--<label>Room Description :</label>--><input type="hidden" name="size"  value="<?php 
        //$size=getRoomSize($_POST['description']); echo $size[0]['room_description'];
        ?>
" disabled>

<label>First Name :</label><input name="fname" type="text" required />
<label>Last Name :</label> <input name="lname" type="text" required />
<label>Email Address :</label> <input type="email" name="email" required />
<label>Phone Number :</label><input type="tel" name="phone" required />
<label>Rates :</label><select name="rate"><?php 
        $season = getSeasons();
        foreach ($season as $val) {
            ?>
<option value="<?php 
            echo $val['season_id'];
            ?>
"><?php 
            echo $val['season_name'];
            ?>
</option><?php 
        }
        ?>
</select>
<label>Amount paid :</label><input type="number" name="amount" required />
<label>Total Amount :</label><input type="number" name="total" required />
<label>Meal Plan :</label><input type="text" name="meal" required />