<tr><td>Description</td> <td><input type ="text" name ="pd" cols = "3" rows ="5"></td></tr> <tr><td colspan="2" align="center"><input type ="submit" value= "Save"></td></tr> </form> </table> <?php if (isset($_REQUEST['pn'])) { include "inventory.php"; $obj = new inventory(); $equipment_name = $_REQUEST['pn']; $description = $_REQUEST['pd']; $equipment_id = $_REQUEST['pid']; $price = $_REQUEST['pr']; $manufacturer_id = $_REQUEST['mid']; if (!$obj->add_equipment($equipment_name, $description, $equipment_id, $price, $manufacturer_id)) { echo "Error adding" . mysql_error(); } else { echo " {$equipment_name} has successfully being added to the database"; } } ?> </table> </div> </table> </div> </body> </html>