Silver
Active Member
- Aug 17, 2016
- 152
- 28
I want my form to submit data via email.
CSS
HTML
CSS
Code:
input[type=text], select {
width: 380px;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 380px;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
Code:
<form action="/action_page.php">
<input type="text" id="fname" name="firstname" placeholder="Your email address..">
<input type="submit" value="Submit">
</form>