este es el error que me pone
Parse error: parse error, unexpected T_ECHO in /var/www/vhost/pubquesello.com/home/html/formulario.php on line 16
.y repito los codigo
Código 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ítulo</title>
</head>
<body>
<?php
$destino = "[email protected]";
$asunto = "asunto del mensaje";
$mensaje = "Nombre: " . $_GET['nombre'] . "\nEmail :" . $_GET['email'] ."url: " . $_GET['url'] . "comentario: " . $_GET['comentario'];
mail($destino, $asunto, $mensaje)
echo '<center><h1>Poper@s tus datos han sido ingresado correctamente</h1></center>';
?>
</body>
</html>
Código HTML:
<form action="formulario.php" name="formulario" id="formulario" >
<label for="nombre">Nombre:</label>
<input type="text" id="nombre" name="nombre" class="campo" />
<label for="email">E-mail:</label>
<input type="text" class="campo" name="email" id="email" />
<label for="url">URL:</label>
<input type="text" class="campo" name="url" id="url" />
<label for="comentario">Comentario:</label>
<textarea class="campo" name="comentario" id="comentario"></textarea>
<br />
<input type="submit" id="boton_enviar" name="enviar" value="Enviar" />
</form>