![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
Código PHP:
<?
session_start();
session_register('itemsEnCesta');
$item=$_GET['Id'];
$cantidad=$_GET['Cantidad'];
$itemsEnCesta=$_SESSION['itemsEnCesta'];
if ($item){
if (!isset($itemsEnCesta)){
$itemsEnCesta[$item]=$cantidad;
}else{
foreach($itemsEnCesta as $k => $v){
if ($item==$k){
$itemsEnCesta[$k]+=$cantidad;
$encontrado=1;
}
}
if (!$encontrado) $itemsEnCesta[$item]=$cantidad;
}
}
$_SESSION['itemsEnCesta']=$itemsEnCesta;
header ('location : clientes_catalogo.php');
?>
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
¿Alguna idea?
Gracias.
![Adios](http://static.forosdelweb.com/fdwtheme/images/smilies/adios.gif)