He aqui el codigo
Código PHP:
<?
aqui va el session start y los $_get de recogida de variables
$_SESSION['ref'][$ref] = $ref;
$_SESSION['precio'][$ref] = $precio;
$_SESSION['nombre'][$ref] = $nombre;
$_SESSION['categoria'][$ref] = $categoria;
$_SESSION['cantidad'][$ref] = $cantidad;
foreach($_SESSION['ref'] as $fer ){
echo "<table width='150' heigth='100' border='2'><tr><td>".$fer."<a href='borracar.php?ref=".$fer."
'>Borrar objeto</a></td></tr></table>";
}
foreach($_SESSION['nombre'] as $nom){
echo "<table width='150' heigth='100' border='2'><tr><td>".$nom."</td></tr></table>";
}
foreach($_SESSION['cantidad'] as $cant ){
echo "<table width='150' heigth='100' border='2'><tr><td>".$cant."</td></tr></table>";
}
foreach($_SESSION['precio'] as $pred){
echo "<table width='150' heigth='100' border='2'><tr><td>".$pre."</td></tr></table>";
}
?>