Menus loosing selection after server validation fail
I've got loads of menus and loads of radio buttons on a page; when the page is submitted and fails validation, the menus loose their selection. They are only static options rather than dynamic.
I have:
<select class="formMenufield_Small" name="fld_qq_doublerooms" id="fld_qq_doublerooms" rel="<?php echo((isset($_GET["invalid"])?ValidatedField("quickquote","fld_qq_doublerooms"):"")); ?>" tabindex="13" title="Please enter a value.">
<option value="">N/A</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
Based on other answer in the forums, without success I have tried:
<select class="formMenufield_Small" name="fld_qq_doublerooms" id="fld_qq_doublerooms" rel="<?php echo((isset($_GET["invalid"])?ValidatedField("quickquote","fld_qq_doublerooms"):"")); ?>" tabindex="13" title="Please enter a value.">
<option value="" <?php if (!(strcmp("", ((isset($_POST["fld_qq_doublerooms"]))?$_POST["fld_qq_doublerooms"]:"")))) {echo "selected=\"selected\"";} ?>>N/A</option>
<option value="1" <?php if (!(strcmp("1", ((isset($_POST["fld_qq_doublerooms"]))?$_POST["fld_qq_doublerooms"]:"")))) {echo "selected=\"selected\"";} ?>>1</option>
<option value="2" <?php if (!(strcmp("2", ((isset($_POST["fld_qq_doublerooms"]))?$_POST["fld_qq_doublerooms"]:"")))) {echo "selected=\"selected\"";} ?>>2</option>
<option value="3" <?php if (!(strcmp("3", ((isset($_POST["fld_qq_doublerooms"]))?$_POST["fld_qq_doublerooms"]:"")))) {echo "selected=\"selected\"";} ?>>3</option>
<option value="4" <?php if (!(strcmp("4", ((isset($_POST["fld_qq_doublerooms"]))?$_POST["fld_qq_doublerooms"]:"")))) {echo "selected=\"selected\"";} ?>>4</option>
</select>
What have I done wrong? Also, is the rel="abc etc" for the select line of code required?
FYI: I want the value for N/A to be blank if possible, but if that is causing the error, then I will use 0, but even that didn't work for me. Also, it is literally 1, 2, 3 and 4 for the options, so I don't see the need to have a recordset populate the menu options.
Thanks in advance.