mirror of
https://github.com/FranP-code/Frist-actual-form.git
synced 2025-10-12 23:53:02 +00:00
CSS terminado
This commit is contained in:
@@ -2,4 +2,10 @@
|
||||
|
||||
echo print_r($_POST);
|
||||
|
||||
if (!isset($_POST['sumbit'])) {
|
||||
header ('Location: index.html');
|
||||
};
|
||||
|
||||
$name = $_POST;
|
||||
|
||||
?>
|
||||
14
index.html
14
index.html
@@ -8,11 +8,13 @@
|
||||
<link rel="stylesheet" href="./styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<form action="backEnd.php" method="POST" class="form">
|
||||
<input type="text" placeholder="Name" name="name" required class="name">
|
||||
<input type="email" placeholder="E-mail" name="electronic-mail" required class="email">
|
||||
<textarea placeholder="Message" name="message" required minlength="35" class="message"></textarea>
|
||||
<input type="submit" placeholder="Enviar" name="submit" required class="submit">
|
||||
</form>
|
||||
<div class="form-container">
|
||||
<form action="backEnd.php" method="POST" class="form">
|
||||
<input type="text" placeholder="Name" name="name" required class="name">
|
||||
<input type="email" placeholder="E-mail" name="electronic-mail" required class="email">
|
||||
<textarea placeholder="Message" name="message" required minlength="35" class="message"></textarea>
|
||||
<input type="submit" value="Send" name="submit" required class="submit">
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
22
styles.css
22
styles.css
@@ -5,6 +5,7 @@
|
||||
width: 400px;
|
||||
height: auto;
|
||||
margin: auto;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.name {
|
||||
@@ -12,6 +13,8 @@
|
||||
background-color: #0e93ff99;
|
||||
border: 1px solid #0e93ff;
|
||||
height: 30px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
.email {
|
||||
@@ -19,14 +22,33 @@
|
||||
background-color: #fffb0e99;
|
||||
border: 1px solid #c7c400;
|
||||
height: 30px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 14pt;
|
||||
margin-top: 2px;
|
||||
color:#4d5761
|
||||
}
|
||||
|
||||
.message {
|
||||
grid-column: 1/3;
|
||||
background-color: #ff0e0e99;
|
||||
border: 1px solid #ff0e0e;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 14pt;
|
||||
margin-top: 2px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.submit {
|
||||
grid-column: 1/3;
|
||||
height: 30px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 14pt;
|
||||
background-color: #a6b5c2;
|
||||
border: 1px solid #0000001c;
|
||||
margin-top: 2px;
|
||||
color: #0000007a;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #0e93ff50;
|
||||
}
|
||||
Reference in New Issue
Block a user