Search menu initial value is not working
My dynamic search menu has an initial value but the initial value that displays is actually from the recordset and not the static value of "Post Type" that I have intended. <select name="post_type" class="formTextfield_Medium" id="post_type" title="Please enter a value." rel="<?php echo((isset($_GET["post_type"])?$_GET["post_type"]:"")); ?>">
<option value="" selected <?php if (!(strcmp("", $row_WADAtbl_posts['post_type']))) {echo "selected=\"selected\"";} ?>>Post Type</option>
<?php
do {
?>
<option value="<?php echo $row_post_type['post_type']?>"<?php if (!(strcmp($row_post_type['post_type'], $row_WADAtbl_posts['post_type']))) {echo "selected=\"selected\"";} ?>><?php echo $row_post_type['post_type']?></option>
<?php
} while ($row_post_type = mysql_fetch_assoc($post_type));
$rows = mysql_num_rows($post_type);
if($rows > 0) {
mysql_data_seek($post_type, 0);
$row_post_type = mysql_fetch_assoc($post_type);
}
?>
</select>