the top option option in a selected list is being loaded as one of the dynamic drop down options
<p>I have a dynamic drop down menu which is hooked up to a query_string to send to the next screen, how can I validate the information from the drop down menu before it gets sent to the next page? I just don't know how to indentify the dynamic drop down. Thanks again!! This is through the server also. here is the code I have so far.</p>

<pre><code>&lt;tr&gt;&lt;td id="giftCardSelectTd"&gt;Choose a Gift Card&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td id="two"&gt; &lt;select name="productId" id="input1"&gt;
    &lt;option value="0"&gt;Select Card&lt;/option&gt;&lt;? while($rows=mysql_fetch_array($result)) {$productId=$rows['productId'];$productPrice=$rows['price'];if($productId == '0'){
    $error="Please select a Gift Card."; header('Location: convenientgiftcardpage.php');}if($productPrice &lt; 0){
    $anchor='&lt;td&gt;&lt;a id="addtocartbtn" href="convenientcartpage.php?add='. $productId . '"&gt;Add to Cart&lt;/a&gt;&lt;/td&gt;';
}
else{
    $anchor='&lt;td&gt;&lt;a id="addtocartbtn" href="convenientcartpage.php?add='. $productId . '"&gt;Add to Cart&lt;/a&gt;&lt;/td&gt;';
}

    ?&gt;
    &lt;option value="&lt;?php echo $productId;?&gt;"&gt;$&lt;?=number_format($productPrice,2);?&gt;&lt;/option&gt;
    &lt;? } ?&gt;&lt;/select&gt;&lt;/td&gt;&lt;?php echo $anchor;?&gt;

    &lt;/tr&gt;
</code></pre>
