Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/04/2010, 19:54
Avatar de acesino1
acesino1
 
Fecha de Ingreso: octubre-2009
Mensajes: 31
Antigüedad: 14 años, 5 meses
Puntos: 0
Sistema de consulta de precio completo pero con fallas

Hola hace 8 horas un amable sujeto llamado "mauroave" soluciono el problema q se me presento en este formulario justo cuanto estaba en la mitad pero ahora tengo otro problema en el mismo es el colmo pero bue.
Bien el problema es q cada ves q elimino errores me salta uno nuevo y por lo menos se como expresarlo pero ahora no se cual o donde se presenta el erro pero sale mi hosting dice:

error en la linea 33 pero cuano la borre volvia a saltar que habia un error en la linea 33 pero bueno quiero que alguien me señale los errores o horrores que eh cometido para los que busquen hacer el formulario les dejo el HTML y el code PHP q es donde tengo problemas:

HTML:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="procesarejemplo.php">
<table width="261" border="0">
<tr>
<td width="88">Producto</td>
<td width="163">Cantidad</td>
</tr>
<tr>
<td>Action Script </td>
<td><label>
<input name="actionqty" type="text" id="actionqty" size="5" />
</label></td>
</tr>
<tr>
<td>Photoshop</td>
<td><input name="photoqty" type="text" id="photoqty" size="5" /></td>
</tr>
<tr>
<td>Flash</td>
<td><input name="flashqty" type="text" id="flashqty" size="5" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><label>
<input type="submit" name="Submit" value="Enviar" />
</label></td>
</tr>
</table>
</form>
</body>
</html>




PHP:

<!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=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?
echo "<p>Su pedido ah sido procesado";
echo "<p>fecha:";
echo date ("j,Y");
echo "<br>";
echo " Action Script ".$_POST["actionqty"]."<br>";
echo " Photoshop ".$_POST["photoqty"]."<br>";
echo " Flash ".$_POST["flashqty"]."<br>";
//en la seccion de arriba se utiliza $_POST por q el formulario en HTML esta comandado con POST por eso aqui se lo recibe con $_POST (OBLIGATORIAMENTE CON MAYUSCULA)


$totalqty = 0;

$total = 0.00;


define ("PRECIOACTION", 100);
define ("PRECIOPHOTO", 10);
define ("PRECIOFLASH", 50);
//contanste no lleva "$"
$totalqty = actionqty * PRECIOACTION
+ photoqty * PRECIOPHOTO
+ flashqty * PRECIOFLASH

echo "Artículos pedidos: ".$totalqty."<br>\n";
echo "subtotal: ";
echo number_format($totalamount, 2)." €";
echo "<br>\n";

$texrate = 0.10; //impuesto
$totalamount = $totalamount * (1 + $taxrate);
$totalamount = number_format($totalamount, 2)
echo "Total incluyendo impuestos: ".$totalamount." €<br>\n";
?>
</body>
</html>