Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/09/2012, 09:55
Avatar de DRANIX
DRANIX
 
Fecha de Ingreso: abril-2010
Mensajes: 24
Antigüedad: 14 años, 1 mes
Puntos: 1
Pregunta Por Que Muestra Los Datos Asi?

Tengo Este Codigo ..
Un Carrito De Compras
Pero Por Que Me Muestra Los Datos Asi
Código PHP:
Ver original
  1. <?php
  2. $ordenc=$_POST["ttbxOrdenCompra"];
  3. $cliente=$_POST["ttbxCliente"];
  4. $obser=$_POST["ttbxObservaciones"];
  5.  
  6. $valores=array("ORDEN" =>$ordenc, "CLIENTE"=> $cliente, "OBSERVACIONES"=> $obser);
  7.  
  8. setcookie("PEDIDO[ORDEN]", $valores["ORDEN"], time()+3600, "/", $dominio);
  9. setcookie("PEDIDO[CLIENTE]", $valores["CLIENTE"], time()+3600, "/", $dominio);
  10. setcookie("PEDIDO[OBSERVACIONES]", $valores["OBSERVACIONES"], time()+3600, "/", $dominio);
  11. ?>
  12. <html>
  13. <title>Pedidos Actuales</title>
  14. <head>
  15.     <link href="img_bottom/Map.ico" type="image/x-icon" rel="shortcut icon"/>
  16.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  17.     <link href="styles.css" rel="stylesheet" type="text/css"/>
  18. <style type="text/css">
  19. .tit {
  20.  font-family: Verdana, Arial, Helvetica, sans-serif;
  21.  font-size: 9px;
  22.  color: #FFFFFF;
  23. }
  24. .prod {
  25.  font-family: Verdana, Arial, Helvetica, sans-serif;
  26.  font-size: 11px;
  27.  color: #333333;
  28.  text-transform:uppercase;
  29.  
  30. }
  31. h1 {
  32.  font-family: Verdana, Arial, Helvetica, sans-serif;
  33.  font-size: 17px;
  34.  color: #990000;
  35. }
  36. h3{
  37. font-family:Verdana, Arial, Helvetica, sans-serif;
  38. font-size: 17px;
  39. color:#990000;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <div id="divSecond" style="text-align:center">
  45.     <a href="Pedido.php" class="LabelStyle" style="color:blue">Pedido</a>
  46.     <span class="LabelStyle">&nbsp;/&nbsp;Pedidos Actuales</span>
  47. </div>
  48. <br>
  49. <table width="650" border="0" cellspacing="0" cellpadding="0" align="center">
  50. <tr bgcolor="#333333" class="tit">
  51.     <td align="center">Orden De Compra</td>
  52.     <td align="center">Cliente</td>
  53.     <td align="center">Observaciones</td>
  54.     <td align="center">Borrar</td>
  55.     <td align="center">A-Detalles</td>
  56. </tr>
  57. <?php
  58. $color=array("#E2D6C2","#F6EDD8");
  59. $contador=0;
  60. if (isset($valores['ORDEN']) || isset($valores['CLIENTE']) || isset($valores['OBSERVACIONES'])) {
  61. foreach($valores as $clave => $value){
  62. $contador++;
  63.     echo "<tr bgcolor=".$color[$contador%2]." class='prod'>";
  64.     echo "<td width='50' align='center'>$value</td>";
  65.     echo "<td width='100' align='center'>$value</td>";
  66.     echo "<td width='50' align='center'>$value</td>";
  67.     echo "<td width='40' align='center'>";
  68.     //echo "<a href='dcar.php?&clave=".$value."'><img src='img_bottom/borrar.gif' border='0' title='Borrar'></a></td>";
  69.     echo "<td width='50' align='center'><input type='button' value='A-Detalles'></input></td>";
  70.     echo "</tr>";      
  71. }
  72.     }else{
  73. ?>
  74. </table>
  75. <?php
  76.     echo "<br>";
  77.     echo "<center class='prod'>No Existen Pedidos Actualmente</center>";
  78. }
  79. echo "<pre>";
  80. print_r($valores);
  81. ?>
  82. </body>
  83. </html>
Chequen La Imagen


Espero Y Encuentren El Error