Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/01/2008, 18:01
Guillon
 
Fecha de Ingreso: diciembre-2007
Mensajes: 38
Antigüedad: 16 años, 4 meses
Puntos: 0
Re: noato demasiado novato

Pues yo creo que si, estoy haciendo el ejercicio del manual de Anaya en el que hay que crear un formulario para enviar pedido de material, cuando se le da al Submit va a esa página con código php en la que me sale el problema... será que estoy usando el Dreamweaver CS3??, o será por como comencé creanod el archivo??

Copio todo el texto de ambos archivos para ver si me puedes dar una mano

CODIGO DEL HTML
Código:
<!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>Untitled Document</title>
</head>

<body>
<form action="processorder.php" method="post">
<table border="0" align="center">
<tr bgcolor="#CCCCCC">
	<td width="125">Item</td>
    <td height="25">Cantidad</td>
</tr>
<tr>
	<td>Ruedas</td>
    <td align="center"><input type="text" name="tiresqty" size="3" maxlength="3" /></td>
</tr>
<tr>
	<td>Aceite</td>
    <td align="center"><input type="text" name="oilqty" size="3" maxlength="3" /></td>
</tr>
<tr>
	<td>Spark plugs</td>
    <td align="center"><input type="text" name="sparkqty" size="3" maxlength="3" /></td>
</tr>
<tr>
	<td colspan="2" align="center"><input type="submit" value="Enviar pedido" /></td>
</tr>
</table>
</form>
</body>
</html>
CODIGO DEL PHP (llamado processorder.php)
Código:
<!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>Autopartes Pepe - Confirmación de pedido</title>
</head>

<body>
<h1>Autopartes Pepe</h1>
<h2>confirmación de pedido</h2>
<?php
	echo '<p>Pedido realizado</p>' ;
?>
</body>
</html>
En ambos casos abrí el Dreamweaver y creé una página en blanco HTML, será eso lo que hice mal?