Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/02/2008, 18:35
Alejandr4
 
Fecha de Ingreso: diciembre-2006
Mensajes: 111
Antigüedad: 17 años, 4 meses
Puntos: 1
Re: Pequeño problemilla

Tenéis razón no he explicado que es lo que hay que pasar, es un carrito de compra, no son variables exatamente, sino el formulario entero, os dejo aquí el códgio, he borrado todo el htm, no sé si os servirá para haceros una ide, ya os he dicho que soy novatilla?

Muchas gracias

Código HTML:
<form name="cestacompra" method="get" action="procesarpago.php" style="display:inline">

<?
		for ($i=0;$i<$this->num_registros;$i++){
			if($this->array_id_prod[$i]!=0){
echo $this->array_id_prod[$i];?>
				-<? echo $this->array_talla_prod[$i]; 
				if ($this->array_color_prod[$i]!=00){
?>
				-<? echo $this->array_color_prod[$i];
				}
?>
				
 
              		&nbsp;Tama&ntilde;o:&nbsp;<? echo $this->array_nomtalla_prod[$i]; 
					
					 if ($this->array_nomcolor_prod[$i]!=Nulo){ ?>

	<br>&nbsp;Color:&nbsp;<? echo $this->array_nomcolor_prod[$i];
	} 
	?>
		
<? if ($this->array_nommodelo_prod[$i]!=Nulo){ ?>
		
	<br>&nbsp;Modelo:&nbsp;<? echo $this->array_modelo_prod[$i];
	}
?> 

				<input name="unidades" type="text" class="unidades" value="<? echo $this->array_num_productos[$i]; ?>" size="2" maxlength="3">
				<? echo $this->array_precio_prod[$i] * $this->array_num_productos[$i]; ?><a href="eliminar_producto.php?linea=<? echo $this->array_codigo_total[$i]; ?>
<?
			}
		}
		
       //muestro el total
?>
<input name="submit" type="image" value="Enviar" src="../imag/huellita.gif" alt="Procesar pedido" align="left" width="30" height="31" border="0">
      <?
    if ($this->importe() < 500){
  		$portes = '9.00';
  	}else{
  		$portes = '0.00';
  	}
   	$total= $this->importe() + $portes;
  ?>
<? echo $this->suma_total; ?>
  <?
  echo $portes;
  ?>

  <?  
  $total= $this->suma_total + $portes;  
  echo $total;  
  ?>
</form>