You have a few probelms, i fixed then on the products options pages, but the same problems exist on the other set
1) on the PRODUCT-OPTIONS.php page, the trigger for setting session is any form pagst, i changed that to page load:
<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["previousPG"] = "PRODUCT-OPTIONS.php";
}
?>
2) the echo of the session should not be in the hwead of the documat, you should add it to the body, otherwise it will cause errors.
3) you have code on the edit page to destroy sessions
<?php
@session_destroy();
@session_regenerate_id();
?>
this means that the sessions no longer exist when the update form is submitted. needs to be removed.