<form name="frm" method="post" enctype="multipart/form-data"> <table width="500" border="0"> <tr> <td>Name</td> <td><input type="text" name="name" /></td> </tr> <tr> <td>Description</td> <td><textarea name="Description" rows="5" cols="30"></textarea></td> </tr> <tr> <td>Brand</td> <td> <select name="brand"> <?php $brandarray = $db->getResults('tbl_brands'); foreach ($brandarray as $brand) { $brandname = $brand['brand']; ?> <option value="<?php echo $brand['id']; ?> "><?php echo $brandname; ?> </option> <?php } ?>