Nav Bar vs Search Page
Nav bar form looks like this ...
<form id="searchForm" method="get" action="Products_Results.php" >
<input type="text" name="S_ProductName" id="S_ProductName" />
<input name="Search" type="submit" id="Search" value="Search" alt="Search" />
</form>
... and the search page form looks like this ...
<div class="contentBox">
<form action="Products_Results.php" method="get" name="WADASearchForm" id="WADASearchForm" class="WADADataTable">
<fieldset class="insertForm">
<p>
<label for="S_ProductName">Keyword:</label>
<input type="text" name="S_ProductName" id="S_ProductName2" value="<?php echo((isset($_GET["S_ProductName"]))?$_GET["S_ProductName"]:"") ?>" size="32" />
</p>
<p>
<label for="S_ProductPrice">Price Range:</label>
<span id="sprytextfield1">
<input type="text" name="S_ProductPrice" id="S_ProductPrice" value="<?php echo((isset($_GET["S_ProductPrice"]))?$_GET["S_ProductPrice"]:"") ?>" size="10" onblur="if (document.getElementById('priceRangeServerValidation')) document.getElementById('priceRangeServerValidation').style.display='none';" style="width: 114px;" />
</span> -
<span id="sprytextfield2">
<input name="S_ProductPrice2" type="text" id="S_ProductPrice2" onblur="if (document.getElementById('priceRangeServerValidation')) document.getElementById('priceRangeServerValidation').style.display='none';" value="<?php echo((isset($_GET["S_ProductPrice2"]))?$_GET["S_ProductPrice2"]:"") ?>" size="10" style="width: 114px;" />
</span><span id="additionalErrorZone" class="additionalErrorZone"><span class="textfieldRequiredMsg textfieldInvalidFormatMsg textfieldMinCharsMsg textfieldMaxCharsMsg textfieldMinValueMsg textfieldMaxValueMsg">Price range fields can be positive numbers, or left blank.</span></span>
<?php
if (ValidatedField("ProductsResults","ProductsResults")) {
if ((strpos((",".ValidatedField("ProductsResults","ProductsResults").","), "," . "1" . ",") !== false || "1" == "") || (strpos((",".ValidatedField("ProductsResults","ProductsResults").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="priceRangeServerValidation">
Price range fields can be positive numbers, or left blank.
</span>
<?php //WAFV_Conditional Products_Results.php ProductsResults(1,2:)
}
}
}?>
</p>
<div class="buttons">
<input name="Search" type="submit" id="Search2" onclick="if (document.getElementById('priceRangeServerValidation')) document.getElementById('priceRangeServerValidation').style.display='none';" value="Search" />
<input type="submit" name="cancel" id="cancel" value="Cancel" onclick="window.location = 'Products_Results.php';" />
</div>
</fieldset>
</form>
</div>
... what have I done wrong?