Foros del Web » Creando para Internet » Herramientas y Software »

No funciona formulario con PHP en Dreamweaver

Estas en el tema de No funciona formulario con PHP en Dreamweaver en el foro de Herramientas y Software en Foros del Web. Hola! este es mi primer post y me gustaria saber si me pueden ayudar. Tengo una página (http://www.utilesesperanza.org/index.html) a la cual le coloque un formulario ...
  #1 (permalink)  
Antiguo 16/05/2010, 18:39
Avatar de agnesart  
Fecha de Ingreso: mayo-2010
Mensajes: 1
Antigüedad: 14 años
Puntos: 0
No funciona formulario con PHP en Dreamweaver

Hola! este es mi primer post y me gustaria saber si me pueden ayudar. Tengo una página (http://www.utilesesperanza.org/index.html) a la cual le coloque un formulario de contacto que supuestamente me enviaria los comentarios a un correo. El tema es que no funciona y no se donde esta el problema- lo que hice en el dream fue armar el formulario en la pagina :http://www.utilesesperanza.org/contacto.html y a su vez crear el archivo php con el nombre "mailadjunto.php" con el siguiente codigo:

<!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>Documento sin título</title>
</head>

<body>
<?php
$para = "[email protected]" . ", "; // ver la coma
$para .= "[email protected]";

// subject
$asunto = "página útiles";

/ capturamos datos enviados desde el formulario
$nombre = $_POST[nombre];
$email = $_POST[email];
$comentario = $_POST[comentario];

$mensaje = "Nombre:$nombre<br/>
Email:$email <br/>
Comentario:$comentario";

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";

// Mail it
mail($para, $asunto, $mensaje, $headers);
echo("gracias $nombre por contactarnos");
?>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

y en el html el siguiente:
</div>
<div class="post">
<form id="form1" method="post" action="mailadjunto.php">
<table width="200" border="0" cellspacing="2">
<tr>
<td>Nombre:</td>
<td><label>
<input name="Nombre" type="text" id="Nombre" size="30" />
</label></td>
</tr>
<tr>
<td>Email:</td>
<td><label>
<input name="Email" type="text" id="Email" size="30" />
</label></td>
</tr>
<tr>
<td>Comentario:</td>
<td><label>
<textarea name="Comentario" id="Comentario" cols="45" rows="5"></textarea>
</label></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><label>
<input type="submit" name="Enviar" id="Enviar" value="Enviar" />
</label>
<label>
<input type="submit" name="Restablecer" id="Restablecer" value="Restablecer" />
</label></td>
</tr>
</table>
</form>
<h2>&nbsp;</h2>
</div>
</div>
<div id="right">
<h2>&nbsp;</h2>

El tema es que cuando se envia el formulario sale el siguiente error:



The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
--------------------------------------------------------------------------------

Please try the following:

•Contact the Web site administrator if you believe that this request should be allowed.
•Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

--------------------------------------------------------------------------------

Technical Information (for support personnel)

•Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
•Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.


Si me pueden ayudar porque de PHP no entiendo mucho y es lo que me falta para que la pagina quede bien.
muchas gracias!!
  #2 (permalink)  
Antiguo 17/05/2010, 07:53
Avatar de juaniquillo
Colaborador
 
Fecha de Ingreso: noviembre-2005
Ubicación: San Juan, Puerto Rico
Mensajes: 5.745
Antigüedad: 18 años, 5 meses
Puntos: 281
Respuesta: No funciona formulario con PHP en Dreamweaver

Este código no tiene que ver nada con Dreamweaver. Pasa por el foro de PHP. Ahí podrán ayudarte mejor.
__________________
Por fin.. tengo algo parecido a un blog
Y por lo visto ya estoy escribiendo...

Etiquetas: dreamweaver, editores-web, php, formulario
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:48.