I have a product page that sends to a product detail page, The detail page also has all other products from the catagory.. The problem is when they land on the page it shows their selected product but in order for the information to pass to the cart they need to select the product first, even though they are already on the page (because there are other produts there) at present if they do not choose their product and just hit select it sends them to a blank page. i need to to prompt and say " please select design first)
this is the form
PHP Code:<form id="FormName" action="" method="get" name="FormName">
<table>
<tr valign="middle">
<td width="30" height="40" class="meduimTXT">1.</td>
<td width="190" align="left"><div align="left">
<select name="ID" class="text" id="selectName">
<option value="Select Design">Select Design</option>
<?php
mysql_select_db($database_beau, $beau);
$query = sprintf("SELECT * FROM beauProd WHERE CatID = '%s'", GetSQLValueString($row_Recordset1['CatID'], "int"));
$results = mysql_query($query, $beau) or die(mysql_error());
$productsInCategory = array();
while($row = mysql_fetch_array($results)){
$productsInCategory[] = $row['ID'];
?>
<option value="<?php echo $row['ID']; ?>"><?php echo $row['name']; ?></option>
<?php
}
?>
</select>
</div></td>
<td width="190" align="left"><input type="image" src="../images/select design.gif" border="0" name="button" id="button" value="select new design" /></td>
</tr>
</table>
</form>
thanks in advance



Reply With Quote

Bookmarks