-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
29 lines (20 loc) · 1.12 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Formulario de Contacto</title>
<link rel="stylesheet" type="text/css" href="css/estilos.css">
<script src="js/form_mail.js"></script>
</head>
<body>
<h1>Formulario de Contacto</h1>
<form name="form_mail" method="post" action="php/enviar-mail.php" onsubmit="return validar();">
<?php include("php/mensajes.php"); ?>
<input type="text" name="name" placeholder="Nombre*" value="<?= $_GET['nombre'] ? $_GET['nombre'] : "" ?>" required="">
<input type="email" name="email" placeholder="Email*" value="<?= $_GET['email'] ? $_GET['email'] : "" ?>" required="">
<input type="text" name="subject" placeholder="Asunto*" value="<?= $_GET['asunto'] ? $_GET['asunto'] : "" ?>" required="">
<textarea name="message" placeholder="Mensaje*" required=""><?= $_GET['mensaje'] ? $_GET['mensaje'] : "" ?></textarea>
<button type="submit" name="submit-form" onclick="validar();"><span>ENVIAR</span></button>
</form>
</body>
</html>