Validation Binding Does not remember the value selected
How come in my first list menu, category the validation bindings do not seem to remember what I select upon failed submission?
<form action="" name="form2" id="form2"> <div class="formCont">
<div class="formRow">
<div class="wdth290 fl">
<span class="redAsterick">*</span>SEXuation <span class="redAsterick">
<?php
if (ValidatedField('form','form')) {
if ((strpos((",".ValidatedField("form","form").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
required
<?php //WAFV_Conditional form.php form(1:)
}
}
}?></span>
<p class="select">
<select name="category" class="default" tabindex="2" title="">
<?php
do {
?><option value="<?php echo $row_rsCats['id']?>"<?php if (!(strcmp($row_rsCats['id'], (ValidatedField("form","category"))))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsCats['category']?></option>
<?php
} while ($row_rsCats = mysql_fetch_assoc($rsCats));
$rows = mysql_num_rows($rsCats);
if($rows > 0) {
mysql_data_seek($rsCats, 0);
$row_rsCats = mysql_fetch_assoc($rsCats);
}
?>
</select>
</p>
<div class="cl"></div>
</div>
<div class="fl"><span class="redAsterick">*</span>FEEDBACK <span class="redAsterick"> required </span>
<p class="select">
<select name="subCategory" class="default" tabindex="2">
<?php
do {
?>
<option value="<?php echo $row_rssubCats['id']?>"><?php echo $row_rssubCats['subcategory']?></option>
<?php
} while ($row_rssubCats = mysql_fetch_assoc($rssubCats));
$rows = mysql_num_rows($rssubCats);
if($rows > 0) {
mysql_data_seek($rssubCats, 0);
$row_rssubCats = mysql_fetch_assoc($rssubCats);
}
?>
</select>
</p>
<div class="cl"></div>
</div>
<div class="cl"></div>
</div>
<div class="formRow">
<div class="wdth290"><span class="redAsterick">*</span> YOUR E-MAIL<span class="redAsterick"> required </span>
<p class="txtField"><span>
<input name="email" type="text" id="email">
</span></p>
<div class="cl"></div>
</div>
</div>
<div class="formRow"> <span class="redAsterick">*</span>YOUR QUESTION <font size="2">
You have <input readonly type="text" name="countdown2" size="3" value="85"> characters left.</font>
<p class="txtField width500"><span>
<input name="limitedtextfield" type="text" onKeyDown="limitText(this.form.limitedtextfield,this.form.countdown2,85);"
onKeyUp="limitText(this.form.limitedtextfield,this.form.countdown2,85);" maxlength="85"><br>
<br>
<br>
<br>
</span></p>
<div class="cl"></div>
</div>
<div class="formRow">
<p> </p>
<p><span class="redAsterick">*</span> MESSAGE You have
<input readonly type="text" name="countdown" size="3" value="284">
characters left.</font>
</p>
<p class="txarea"><span>
<textarea name="limitedtextarea" onKeyDown="limitText(this.form.limitedtextarea,this.form.countdown,284);" onKeyUp="limitText(this.form.limitedtextarea,this.form.countdown,284);"></textarea>
<br>
<font size="1"><br>
<br>
<br>
please type the captcha code:<br>
<img src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MODERNA_.TTF&textcolor=000000" alt="security code" name="capt1" width="32" height="32" id="capt1" /><br>
<br>
<input name="Security_Code_1" type="text" class="text-field" id="Security_Code_1" value="" />
</span></p>
<div class="cl"></div>
</div>
<div class="formRow fr"> <a href="#" title="Ask">
<input name="button" type="image" id="button" value="Submit" src="images/askBtn.gif">
</a> </div>
<div class="cl"></div>
</div></form>