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)."$key> \n";
}
$sProductData = $sProductData." \n";
$fileHandle = fopen($sFilePath, "w");
fwrite($fileHandle, $sProductData);
fclose($fileHandle);
$aaProductData = fnRetrovoxParseXml($sProductData);
//--<--<--<--<--<
?>
Retrovox Update Product
The product was updated
The following data was saved
-->-->-->-->-->-->-->
//-- for debugging
//
=htmlspecialchars($sProductData)?
foreach ($aaProductData as $key => $value)
{
echo "