Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/10/2009, 13:36
maty711
 
Fecha de Ingreso: septiembre-2009
Mensajes: 23
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Problema LocalHost y AppServer [Ayuda]

Otra vez, con otro problema

Me anda bien Xampp, pero tengo un problema. Yo subi un formulario en html y un .php para hacer una prueba si andaba bien el php, pero veo que no es asi.

Aqui les pongo el codigo para que vean si esta bien:

HTML:
Código:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<html>
<body background="fondo.png">
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 46px; top: 206px;">
<form action="procesarorden.php" method=post>
<table border=0>
<tr bgcolor=#cccccc>
  <td width=150><font face="Arial, Helvetica, sans-serif">Libro</font></td>
  <td width=15><font face="Arial, Helvetica, sans-serif">Cantidad</font></td>
</tr>
<tr>
  <td><font face="Arial, Helvetica, sans-serif">ActionScript</font></td>
  <td align=center><font face="Arial, Helvetica, sans-serif">
    <input type="text" name="actionqty" size=3 maxlength=3>
  </font></td>
</tr>
<tr>
  <td><font face="Arial, Helvetica, sans-serif">Photoshop</font></td>
  <td align=center><font face="Arial, Helvetica, sans-serif">
    <input type="text" name="photoqty" size=3 maxlength=3>
  </font></td>
</tr>
<tr>
  <td><font face="Arial, Helvetica, sans-serif">Flash MX </font></td>
  <td align=center><font face="Arial, Helvetica, sans-serif">
    <input type="text" name="flashqty" size=3 maxlength=3>
  </font></td>
</tr>
<tr>
  <td colspan=2 align=center><input type=submit value="Enviar Pedido"></td>
</tr>
</table>
</form></div>
</body>
</html>




PHP:

Código:
<html>
<head>
  <title>Formulario de pedido de libros</title>
</head>
<body>
<h1>Librer&iacute;a Online </h1>
<h2>Resumen del Pedido </h2>

<?php
  echo "<p>Pedido procesado el "; // Start printing order 

  echo date("jS F,H:i ");
  echo "<br>";
  echo "<p>Su pedido es el siguiente:";
  echo "<br>";
  echo $actionqty. "ActionScript<br>";
  echo $photoqty." Photoshop<br>";
  echo $flashqty." Flash MX<br>";

  $totalqty = 0;
 
  define("ACTIONPRICE", 100);
  define("PHOTOPRICE", 10);
  define("FLASHPRICE", 4);

  $totalqty = $actionqty + $photoqty + $flashqty;
  echo "<br>\n";
  echo "Artículos Pedidos:       ".$totalqty."<br>\n";

?>
</body>
</html>

El problema que tengo, es que al llenar el formulario con 3 numeros diferentes en los textbox, me tendrian que aparecer en el php diciendo por ejemplo:

3 Actionscript
2 Flash Mx

etc...

Pero no aparecen los numeros, lo demas si. Quiero saber que es lo qe falla porque me estoy volviendo loocoo !

Nota:
Los codigos que puse mas arriba son de un videotutorial de la pagina web Illasaron.


Desde ya Graicas !!