Ver Mensaje Individual
  #7 (permalink)  
Antiguo 20/12/2007, 16:27
Bodyboard Man
 
Fecha de Ingreso: febrero-2006
Mensajes: 42
Antigüedad: 19 años
Puntos: 0
Re: formulario email sencillo

html

title>Formulario</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table align="center">
<form action="Envia.php" method="post">
<tr>
<td><input type="text" name="email" id="email"></td>
</tr>
<tr>
<td><input type="submit" value="ENVIAR" <td>
</tr>
</form>
</table>
</body>
</html>


Envia.php

<html>
<head>
<title>Envia</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
$email = $_POST['email'];
if (!$email)
echo "Devuelvase que no escribio nada";
else
{
echo "<font color=red>Mensaje enviado</font>";
}

</body>
</html>


Estoy trabajando con Dreamweaver. Gracias!!