yo lo solucione de la siguiente manera y me funciona
en el archivo de output_fns.php en la linea que esta
Código PHP:
echo "<input type = text name = \"$isbn\" value = $qty size = 3>";
La cambie por
Código PHP:
echo "<input type = text name = \"cant[]\" value = $qty size = 3>";
y luego en el archivo show_cart.php para llamarlo por $_POST hice lo siguiente
Código PHP:
$cant = array();
for($i = 0; $i <= count($_POST['cant']); $i++)
{
$cant[$i] = $_POST['cant'][$i];
}
y por ultimo en donde saca el error
Código PHP:
if($save)
{
$i = 0;
foreach ($cart as $isbn => $qty)
{
if($cant[$i] == "0")
{
unset($cart[$isbn]);
}
else
{
$cart[$isbn] = $cant[$i];
}
$i++;
}
$total_price = calculate_price($cart);
$items = calculate_items($cart);
}