Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/05/2011, 17:33
rodricrzz
 
Fecha de Ingreso: noviembre-2009
Mensajes: 41
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: Problema acumulación carrito

Cita:
Iniciado por IEKK Ver Mensaje
A ver, si lo quieres en lib_carrito.php ya te dije que variable usar.

Si lo quieres usar en mete_producto.php justo después de PRODUCTO AÑADIDO, puedes usar el $_GET['nombre']. Lo concatenas ahí, en esa línea, y listo
No me lo pidas hecho porque ya te he dicho en que líneas tienes que hacer el echo.
Algo debo estar haciendo mal, te pido disculpas y paciencia :/ .

Código PHP:
<?php
include("lib_carrito.php");
$_SESSION["ocarrito"]->introduce_producto($_GET["id"], $_GET["nombre"], $_GET["precio"]);
?>

<html>
<head>
    <title>Introduce Producto</title>
</head>

<body background="bg.jpg" text="#666666" link="#575757" vlink="#575757" alink="#575757" marginheight="0" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0">

<div align="center">
<b><font face="Verdana" color="#111111">PRODUCTO AÑADIDO</font></b><br><br>$_GET['nombre']        
            <p align="center"><b><font face="Arial"><a href="ver_carrito.php" title="Ir la página anterior">
            <span style="text-decoration: none"><font color="#000000">Volver 
            al carro de compras</font></span></a></font></b></div>

</body>
</html>
Fíjate donde coloqué el código que me diste último... Lo puse allí pero sigue sin funcionar, me imprime el pedazo de código simplemente... Nuevamente te pido disculpas, seguramente debe ser alguna tontería en la que estoy errando, pero no la puedo encontrar :(