Mira como yo lo tengo
Código PHP:
<?php
if($_POST)
{
if(isset($_SESSION['ShippingAddress']))
$_SESSION['company'] = $_POST['txtShippingCompany'];
$_SESSION['ShippingAddress'] = $_POST['txtShippingAddress1'];
$_SESSION['ShippingAddress2'] = $_POST['txtShippingAddress2'];
$_SESSION['city'] = $_POST['txtShippingCity'];
$_SESSION ["state"] = $_POST['txtShippingState'];
$_SESSION ["zipcode"] = $_POST['txtShippingZipcode'];
echo $_SESSION['company']."<br/>";
echo $_SESSION['ShippingAddress']."<br/>";
echo $_SESSION['ShippingAddress2']."<br/>";
echo $_SESSION ["city"]." ".$_SESSION ["state"]." ".$_SESSION ["zipcode"];
}
else
{
echo "No hay nada en POST <p/>";
}
echo "<a href='#'> Edit Shipping Address </a>";
?>
pero solo me muestra si esta en post, no me lo guarda en la session para que se quede permanentemente hasta que yo destruya la session...
que crees que esta mal?
gracias