New at PHP Programing

Hi, I´m quite new at PHP programing. Mainly I work with HTML in Dreamweaver.

So my question is about How to retrieve data from a form so the data can be processed and sent via e-mail. I´m using a template from e-cartWebAssist and mannipulated to fit my design (by the way If there are easier solutions to do an e-cart… pleaseeeeeeee I´m open to ideas and to learn)

Here is the sample of what I talk about…

<?php
//WA eCart Include
require_once("WA_eCart/eCart_es_PHP.php");
?>
<?php
$eCart_es->GetContent();
?>
<?php
// WA eCart Update
if (isset($_POST["eCart_es_Update_100"]) || isset($_POST["eCart_es_Update_100_x"]))     {
  $eCart_es->UpdateCart();
  $Redirect_redirStr="";
  if ($Redirect_redirStr != "")     {
    $eCart_es->redirStr = $Redirect_redirStr;
  }
  $eCart_es->cartAction = "Update";
}
?>
<?php
// WA eCart Continue Shopping
if (isset($_POST["eCart_es_Continue_100"]) || isset($_POST["eCart_es_Continue_100_x"]))     {
  $Redirect_redirStr="";
  if (true && isset($_SESSION['WAEC_ContinueRedirect'])) {
    $Redirect_redirStr=siteToPageRel($_SESSION['WAEC_ContinueRedirect']);
  }
  if ($Redirect_redirStr != "")     {
    $eCart_es->redirStr = $Redirect_redirStr;
  }
  $eCart_es->cartAction = "Continue";
}
?>
<?php
// WA eCart Clear Cart
if (isset($_POST["eCart_es_Clear_100"]) || isset($_POST["eCart_es_Clear_100_x"]))     {
  $eCart_es->ClearCart();
  $Redirect_redirStr="";
  if ($Redirect_redirStr != "")     {
    $eCart_es->redirStr = $Redirect_redirStr;
  }
  $eCart_es->cartAction = "ClearCart";
}
?>
<?php
//WA eCart Redirect Check Out
if (isset($_POST["eCart_es_Checkout"]) || isset($_POST["eCart_es_Checkout_x"]))     {
  $Redirect_redirStr="../checkout.php";
  if ($Redirect_redirStr != "")     {
    if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "")     {
      if (strpos($Redirect_redirStr, "?") < 0)     {
        $Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
      }
      else     {
        $Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
      }
    }

    $eCart_es->redirStr = $Redirect_redirStr;
  }
  $eCart_es->cartAction = "Checkout";
}
?>
<?php
// WA eCart Redirect
if ($eCart_es->redirStr != "")     {
  header("Location: ".$eCart_es->redirStr);
}
?>
<?php require_once('Connections/connAydo.php'); ?>
<?php require_once('Connections/connAydo.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_connAydo, $connAydo);
$query_rsCategories = "SELECT * FROM categories";
$rsCategories = mysql_query($query_rsCategories, $connAydo) or die(mysql_error());
$row_rsCategories = mysql_fetch_assoc($rsCategories);
$totalRows_rsCategories = mysql_num_rows($rsCategories);

$currentPage = $_SERVER["PHP_SELF"];

$currentPage = $_SERVER["PHP_SELF"];

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$currentPage = $_SERVER["PHP_SELF"];

$queryString_rsProduct = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_rsProduct") == false && 
        stristr($param, "totalRows_rsProduct") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_rsProduct = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_rsProduct = sprintf("&totalRows_rsProduct=%d%s", $totalRows_rsProduct, $queryString_rsProduct);

$queryString_rsProduct = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_rsProduct") == false && 
        stristr($param, "totalRows_rsProduct") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_rsProduct = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_rsProduct = sprintf("&totalRows_rsProduct=%d%s", $totalRows_rsProduct, $queryString_rsProduct);

$queryString_rsProduct = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_rsProduct") == false && 
        stristr($param, "totalRows_rsProduct") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_rsProduct = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_rsProduct = sprintf("&totalRows_rsProduct=%d%s", $totalRows_rsProduct, $queryString_rsProduct);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AYDOCOM</title>
<link href="ccs1.css" rel="stylesheet" type="text/css" />
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args*+".location='"+args[i+1]+"'");
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//---------------   END LOCALIZEABLE   ---------------
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args*+".location='"+args[i+1]+"'");
}
</script>
<link href="WA_eCart/CSS/eC_Clean_Pacifica_Arial.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style2 {
	color: #000000
}
-->
</style>
</head>
<body>
<!-- #BeginLibraryItem "/Library/head.lbi" -->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="common/bannertop.jpg">
  <td height="120"><table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="10">&nbsp;</td>
          <td height="120" valign="bottom" background="common/fndmenu_c.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="20" align="center" id="dateformat">&nbsp;&nbsp;
                  <script language="JavaScript" type="text/javascript">
      document.write(TODAY);	</script></td>
              </tr>
            </table></td>
          <td width="595" height="120" background="common/head.jpg"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','595','height','120','src','common/slogan','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','common/slogan' ); //end AC code
</script>
            <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="595" height="120">
              <param name="movie" value="common/slogan.swf">
              <param name="quality" value="high">
              <embed src="common/slogan.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="595" height="120"></embed>
            </object>
            </noscript></td>
          <td width="10">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- #EndLibraryItem -->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10" rowspan="2">&nbsp;</td>
    <td valign="top" background="common/fndmenu_c.jpg"><table width="165" border="0" cellpadding="0" cellspacing="0" id="navigation">
        <tr>
          <td width="165"> <br />
            <br /></td>
        </tr>
        <tr>
          <td><a href="index.html">Index</a></td>
        </tr>
        <tr>
          <td width="165"><a href="es/home.php" class="navText">Bienvenida</a></td>
        </tr>
        <tr>
          <td width="165"><a href="es/tech1.php" class="navText">La tecnologia</a></td>
        </tr>
        <tr>
          <td width="165"><a href="es/product.php" class="navText">Productos</a></td>
        </tr>
        <tr>
          <td><table width="90%" border="0" align="right" cellpadding="0" cellspacing="0">
              <?php do { ?>
                <tr>
                  <td><a href="es/productCat.php?categoryID=<?php echo $row_rsCategories['categoryID']; ?>"><?php echo $row_rsCategories['categoryName']; ?></a></td>
                </tr>
                <?php } while ($row_rsCategories = mysql_fetch_assoc($rsCategories)); ?>
            </table></td>
        </tr>
        <tr>
          <td><a href="file:///C|/Program Files/xampp/htdocs/lesp/aydoblog.html">AyDo•Blog</a></td>
        </tr>
        <tr>
          <td><a href="ofertas.html">Ofertas</a></td>
        </tr>
        <tr>
          <td width="165"><a href="legal.html" class="navText">Nota legal</a></td>
        </tr>
        <tr>
          <td width="165"><a href="mailto:[email protected]" class="navText">E-m@il</a></td>
        </tr>
        <tr>
          <td><a href="add_data.php">Add</a></td>
        </tr>
        <tr>
          <td align="center"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','146','height','146','src','common/gotafuego','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','common/gotafuego' ); //end AC code
    </script>
            <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="146" height="146">
              <param name="movie" value="common/gotafuego.swf" />
              <param name="quality" value="high" />
              <embed src="common/gotafuego.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="146" height="146"></embed>
            </object>
            </noscript></td>
        </tr>
      </table></td>
    <td width="595" valign="top" background="common/fndbody1.jpg" id="fndfix"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="common/fndbody_c.jpg">
        <tr>
          <td background="common/fndbody1.jpg" id="fndfix"><table width="100%" border="0" cellpadding="20" cellspacing="0">
              <tr>
                <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="5">
                    <tr>
                      <td width="50" class="pageName"><img src="images/botonera/add.png" alt="." width="50" height="58" align="absmiddle" /></td>
                      <td width="485" style="cursor:hand"><span class="pageName">ORDEN DE COMPRA</span></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td class="bodyText"><div class="eC_Clean_Pacifica_Arial">
                    <?php
//WA eCart Show If Start
if (!$eCart_es->IsEmpty())     {
?>
                      <h2> Confirmaci&oacute;n de la orden</h2>
                      <table class="eC_ShoppingCart" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <th>Name</th>
                          <th  class="eC_PriceItem" >Price</th>
                          <th  class="eC_FormItem" >Quantity</th>
                          <th  class="eC_PriceItem" >Total</th>
                        </tr>
                        <?php
while (!$eCart_es->EOF())      {
?>
                          <tr>
                            <td><img src="<?php echo $eCart_es->DisplayInfo("Tumbnail"); ?>" alt="" width="50" height="50" class="eC_ProductThumb" />
                              <p class="eC_ItemLabel"><?php echo $eCart_es->DisplayInfo("Name"); ?></p></td>
                            <td  class="eC_PriceItem" ><?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->DisplayInfo("Price")); ?></td>
                            <td  class="eC_FormItem" ><?php echo $eCart_es->DisplayInfo("Quantity"); ?></td>
                            <td  class="eC_PriceItem" ><?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->DisplayInfo("TotalPrice")); ?></td>
                          </tr>
                          <?php
  $eCart_es->MoveNext();
}
$eCart_es->MoveFirst();
?>
                      </table>
                      <div class="eC_OrderSummary">
                        <table border="0" cellpadding="0" cellspacing="0" class="eC_CartSummary">
                          <?php
//WA eCart Merchandizing Show Start
//ecart="eCart_es"
if ($eCart_es->GetDiscounts() > 0 || $eCart_es->GetCharges() > 0 || $eCart_es->GetShipping() > 0 || $eCart_es->GetTax() > 0)     {
?>
                          <tr>
                            <td class="eC_Subtotal eC_SummaryLabel">Sub-total</td>
                            <td class="eC_Subtotal"><span class="style2"><?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->TotalColumn("TotalPrice")); ?></span></td>
                          </tr>
                          <?php
//WA eCart Merchandizing Show End
//ecart="eCart_es"
}
?>
                          <?php
//WA eCart Merchandizing Show Start
//ecart="eCart_es"
if ($eCart_es->GetDiscounts() > 0)     {
?>
                          <tr>
                            <td bgcolor="#FFFFFF" class="eC_SummaryLabel">Descuentos</td>
                            <td bgcolor="#FFFFFF"><span class="style2">-<?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->GetDiscounts()); ?></span></td>
                          </tr>
                          <?php
//WA eCart Merchandizing Show End
//ecart="eCart_es"
}
?>
                          <?php
//WA eCart Merchandizing Show Start
//ecart="eCart_es"
if ($eCart_es->GetCharges() > 0)     {
?>
                          <tr>
                            <td bgcolor="#FFFFFF" class="eC_SummaryLabel">Cargos</td>
                            <td bgcolor="#FFFFFF"><span class="style2"><?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->GetCharges()); ?></span></td>
                          </tr>
                          <?php
//WA eCart Merchandizing Show End
//ecart="eCart_es"
}
?>
                          <?php
//WA eCart Merchandizing Show Start
//ecart="eCart_es"
if ($eCart_es->GetShipping() > 0)     {
?>
                          <tr>
                            <td bgcolor="#FFFFFF" class="eC_SummaryLabel">Transporte</td>
                            <td bgcolor="#FFFFFF"><span class="style2"><?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->GetShipping()); ?></span></td>
                          </tr>
                          <?php
//WA eCart Merchandizing Show End
//ecart="eCart_es"
}
?>
                          <?php
//WA eCart Merchandizing Show Start
//ecart="eCart_es"
if ($eCart_es->GetTax() > 0)     {
?>
                          <tr>
                            <td bgcolor="#FFFFFF" class="eC_SummaryLabel">Impuestos</td>
                            <td bgcolor="#FFFFFF"><span class="style2"><?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->GetTax()); ?></span></td>
                          </tr>
                          <?php
//WA eCart Merchandizing Show End
//ecart="eCart_es"
}
?>
                          <tr class="eC_SummaryFooter">
                            <td class="eC_SummaryLabel">(*)Total:</td>
                            <td class="quote"><span class="style2"><strong><?php echo WA_eCart_DisplayMoney($eCart_es, $eCart_es->GrandTotal()); ?></strong></span></td>
                          </tr>
                        </table>
                      </div>
                      <?php
//WA eCart Show If Middle
}
else     {
?>
              <table>
                <tr>
                  <td>The cart is empty</td>
                </tr>
              </table>
              
                      <?php
//WA eCart Show If End
}
?>
                    <div class="eC_PurchaserInfoWrapper">
                      <h3 class="eC_InfoHeader"> Informaci&oacute;n de Facturaci&oacute;n</h3>
                      <div class="eC_InfoContainer">
                        <p class="eC_OrderInfo"><?php echo((isset($_POST["firstname"]))?$_POST["name"]:"") ?>&nbsp;<br />
                          <?php echo((isset($_POST["email"]))?$_POST["email"]:"") ?><br />
                          <?php echo((isset($_POST["phone"]))?$_POST["phone"]:"") ?><br />
                          <?php echo((isset($_POST["fax"]))?$_POST["fax"]:"") ?><br />
                          <?php echo((isset($_POST["calle"]))?$_POST["calle"]:"") ?>,&nbsp;<?php echo((isset($_POST["numero"]))?$_POST["numero"]:"") ?>.&nbsp;<?php echo((isset($_POST["piso"]))?$_POST["piso"]:"") ?><br />
                          <?php echo((isset($_POST["city"]))?$_POST["city"]:"") ?><br />
                          <?php echo((isset($_POST["provincia"]))?$_POST["provincia"]:"") ?><br />
                          <?php echo((isset($_POST["postcode"]))?$_POST["postcode"]:"") ?><br />
                          <?php echo((isset($_POST["country"]))?$_POST["country"]:"") ?></p>
                      </div>
                    </div>
                    <div class="eC_Clean_Pacifica_Arial">
                      <div class="eC_CheckoutFormWrapper">
                        <form action="mailer.php" method="post" name="checkout_PP_LI_Hid" id="checkout_PP_LI_Hid">
                          <div class="eC_PurchaserInfoWrapper">
                            <div class="eC_CheckoutFormBody"> </div>
                          </div>
                          <table class="eC_ButtonWrapper" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td><input type="hidden" name="business" id="business" value="[email protected]" />
                                <?php $eCart_es_Index = $eCart_es->DisplayIndex - 1;?>
                                <?php
while (!$eCart_es->EOF())      {
?>
                                  <?php $eCart_es_Index ++;?>
                                  <?php //WA eCart Validation 
if ((WA_eCart_FormatNumber($eCart_es->DisplayInfo("Price") - (($eCart_es->DisplayInfo("Price")/$eCart_es->TotalColumn("TotalPrice")) * $eCart_es->GetDiscounts()), false, 2) > 0)) {
?>
                                    <input type="hidden" name="amount_<?php echo $eCart_es_Index+1; ?>" id="amount_<?php echo $eCart_es_Index+1; ?>" value="<?php echo WA_eCart_FormatNumber($eCart_es->DisplayInfo("Price") - (($eCart_es->DisplayInfo("Price")/$eCart_es->TotalColumn("TotalPrice")) * $eCart_es->GetDiscounts()), false, 2) ?>" />
                                    <input type="hidden" name="item_name_<?php echo $eCart_es_Index+1; ?>" id="item_name_<?php echo $eCart_es_Index+1; ?>" value="<?php echo $eCart_es->DisplayInfo("Name") ?>" />
                                    <input type="hidden" name="item_number_<?php echo $eCart_es_Index+1; ?>" id="item_number_<?php echo $eCart_es_Index+1; ?>" value="<?php echo $eCart_es->DisplayInfo("ID") ?>" />
                                    <input type="hidden" name="quantity_<?php echo $eCart_es_Index+1; ?>" id="quantity_<?php echo $eCart_es_Index+1; ?>" value="<?php echo $eCart_es->DisplayInfo("Quantity") ?>" />
                                    <input type="hidden" name="on0_<?php echo $eCart_es_Index+1; ?>" id="on0_<?php echo $eCart_es_Index+1; ?>" value="" />
                                    <input type="hidden" name="os0_<?php echo $eCart_es_Index+1; ?>" id="os0_<?php echo $eCart_es_Index+1; ?>" value="" />
                                    <input type="hidden" name="on1_<?php echo $eCart_es_Index+1; ?>" id="on1_<?php echo $eCart_es_Index+1; ?>" value="" />
                                    <input type="hidden" name="os1_<?php echo $eCart_es_Index+1; ?>" id="os1_<?php echo $eCart_es_Index+1; ?>" value="" />
                                    <?php //WA eCart Validation 
}
  else {
    $eCart_es_Index --;
  }
?>
                                  <?php
  $eCart_es->MoveNext();
}
$eCart_es->MoveFirst();
?>
                                <input type="hidden" name="handling_cart" id="handling_cart" value="<?php echo ($eCart_es->GetShipping() + $eCart_es->GetCharges()); ?>" />
                                <input type="hidden" name="tax_cart" id="tax_cart" value="<?php echo $eCart_es->GetTax() ?>" />
                                <input type="hidden" name="no_note" id="no_note" value="0" />
                                <input type="hidden" name="no_shipping" id="no_shipping" value="1" />
                                <input type="hidden" name="cancel_return" id="cancel_return" value="" />
                                <input type="hidden" name="return" id="return" value="" />
                                <input type="hidden" name="cmd" id="cmd" value="_cart" />
                                <input type="hidden" name="upload" id="upload" value="1" />
                                <input type="hidden" name="currency_code" id="currency_code" value="EUR" />
                                <input type="hidden" name="address_override" id="address_override" value="0" />
                                <input type="hidden" name="first_name" id="first_name" value="<?php echo((isset($_POST["firstname"]))?$_POST["firstname"]:"") ?>" />
                                <input type="hidden" name="last_name" id="last_name" value="<?php echo((isset($_POST["lastname"]))?$_POST["lastname"]:"") ?>" />
                                <input type="hidden" name="address1" id="address1" value="<?php echo((isset($_POST["street1"]))?$_POST["street1"]:"") ?>" />
                                <input type="hidden" name="address2" id="address2" value="<?php echo((isset($_POST["street2"]))?$_POST["street2"]:"") ?>" />
                                <input type="hidden" name="city" id="city" value="<?php echo((isset($_POST["city"]))?$_POST["city"]:"") ?>" />
                                <input type="hidden" name="state" id="state" value="<?php echo((isset($_POST["state_province"]))?$_POST["state_province"]:"") ?>" />
                                <input type="hidden" name="zip" id="zip" value="<?php echo((isset($_POST["postcode"]))?$_POST["postcode"]:"") ?>" />
                                <input type="hidden" name="country" id="country" value="<?php echo((isset($_POST["country"]))?$_POST["country"]:"") ?>" />
                                <input type="button" value="Modificar informacion" onclick="history.back();return false;"/>
                                <input type="submit" name="Submit_order" id="Submit_order" value="Proceder con la compra"  />
                              </td>
                            </tr>
                          </table>
                        </form>
                      </div>
                    </div>
                    <p class="bodyText">(*) Nota importante: el precio indicado no icluye gastos de envío. Estos datos le serán suministrados en la factura proforma que recibirá en el email indicado por usted</p>
                    <p>&nbsp;</p>
                  </div></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
    <td width="10" rowspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td><img src="common/fndmenu2.jpg" width="165" height="233" /></td>
    <td width="595"><img src="common/fndbody2.jpg" width="595" height="233" /></td>
  </tr>
</table>
</body>
</html>
<?php
mysql_free_result($rsCategories);
?>

I already manage to make some experiments for a simple contact form (following a tutorial I found here http://www.kirupa.com/web/php_contact_form.htm) and it was a succes for me! :party: but I arrived to the point that now I need to complicate the thing :beer2:

Sorry for my english, I trying my best

Thanks in advance