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.
<tr><td id="giftCardSelectTd">Choose a Gift Card</td></tr><tr><td id="two"> <select name="productId" id="input1">
<option value="0">Select Card</option><? 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 < 0){
$anchor='<td><a id="addtocartbtn" href="convenientcartpage.php?add='. $productId . '">Add to Cart</a></td>';
}
else{
$anchor='<td><a id="addtocartbtn" href="convenientcartpage.php?add='. $productId . '">Add to Cart</a></td>';
}
?>
<option value="<?php echo $productId;?>">$<?=number_format($productPrice,2);?></option>
<? } ?></select></td><?php echo $anchor;?>
</tr>