-->-->-->-->-->-->--> require '/usr50/home/retrovox/public_html/manage/php-lib/fnRetrovoxParseXml.php'; $sDataPath = "/usr50/home/retrovox/public_html/product-data"; $sProductId = $_POST["product-id"]; $sFilePath = "$sDataPath/product-$sProductId.xml"; if ($sProductId == '') { echo " Retrovox Product Display, (No product specified)

No product was specified

You did not specify any product to update (using the product-id)

This situation probably indicates an error in the script edit-product-form.php
View All Product Files (XML) "; exit; } //-- if no product if (!file_exists($sFilePath)) { echo " Retrovox Product Edit, (The item doesn't exist)

The item doesn't exist

There is no product on the Retrovox site with the product-id which you just specified. For this reason the data for this product cannot be updated


This probably indicates an error is the script file edit-product-form.php
To create a new product you should use the script add-product-form.php View All Products "; return; } //-- if product doesnt exist if (!is_readable($sFilePath)) { echo " Retrovox Product Display, (The product file is not readable)

The product file is not readable

The file containing the data for the product which you specified is not readable. The permissions for this file will need to be altered by the system administrator


"; return; } //-- if product file not readable if (!is_writable($sFilePath)) { echo " Retrovox Product Display, (The product file is not writable)

The product file is not writeable

The file containing the data for the product which you specified is not writable. The permissions for this file will need to be altered by the system administrator


"; return; } //-- if product file not writeable //-- Construct the XML and write the data to file // $sProductData = " \n"; foreach ($_POST as $key => $value) { $sProductData = $sProductData."<$key>".htmlspecialchars($value)." \n"; } $sProductData = $sProductData." \n"; $fileHandle = fopen($sFilePath, "w"); fwrite($fileHandle, $sProductData); fclose($fileHandle); $aaProductData = fnRetrovoxParseXml($sProductData); //--<--<--<--<--< ?> Retrovox Update Product

The product was updated

-->-->-->-->-->-->--> //-- for debugging //



   foreach ($aaProductData as $key => $value)
   {
      echo "
\n"; } //-- foreach //--<--<--<--<--<--<--<--< ?>
The following data was saved
$key$value
  1. View the web-page for this product
  2. View the raw XML data for this product
  3. View the XML data for this product in a web-page
  4. Edit the data for this product (Administrators Only)
  5. Add a new product (Administrators Only)