Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/02/2011, 12:03
Avatar de jesusramos78
jesusramos78
 
Fecha de Ingreso: febrero-2011
Ubicación: Medellin
Mensajes: 8
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: novato: problema con variables

Les copio el codigo en cuestion.

La parte HTML(indexlibreria.html):

<body>

<form action= "ordenpedidolibreria.php" method=post>
<table border=0>
<tr bgcolor=#cccccc>
<td width=150>Articulo</td>
<td width=15>Cantidad</td>
</tr>
<tr>
<td>Historia</td>
<td align="center"><input type="text" name="historia" size="3"
maxlength="3" /></td>
</tr>
<tr>
<td>Literatura</td>
<td align="center"><input type="text" name="literatura" size="3"
maxlength="3" /></td>
</tr>
<tr>
<td>Religion</td>
<td align="center"><input type="text" name="religion" size="3"
maxlength="3"></td>
</tr>
<tr>
<td colspan="2"align="center"><input type="submit" value="Realizar pedido"></td>
</tr>

La parte PHP (ordenpedidolibreria.php):

<body>

<?php

/*Modificado el 10 de febrero del 2011
Procesa el pedido*/

echo "<p>Orden procesada el ";
echo date("j");
echo " de ";
echo date("F");
echo " del ";
echo date("Y");
echo " a las ";
echo date("H:i");
echo "<br>";

echo "$historia de historia<br>";
echo $literatura." de literatura<br>";
echo $religion." de religion<br>";

?>

</body>
</html>