} // WEIGHT if (isset($_POST['mold_weight'])) { $mold->pm_set_mold_weight($_POST['mold_weight']); } // LENGTH if (isset($_POST['mold_length'])) { $mold->pm_set_mold_length($_POST['mold_length']); } // WIDTH if (isset($_POST['mold_width'])) { $mold->pm_set_mold_width($_POST['mold_width']); } // HEIGHT if (isset($_POST['mold_height'])) { $mold->pm_set_mold_height($_POST['mold_height']); } // SHIPPING CLASS if (isset($_POST['mold_shipping_class'])) { $mold->pm_set_mold_shipping_class($_POST['mold_shipping_class']); } // RESET EVERYTHING if (isset($_POST['reset']) && $_POST['reset'] == "yes") { $mold->pm_default_values(); } if ($_POST['action'] == 'new') { ## TEMPORARY SAVING ## ## We save to the temporary table ## $mold->pm_temporary_save(); } else { if ($_POST['action'] == 'edit') {