Code:
hi i am making a song request form
and basically when people press submit i would like
some sort of text to show up ie request&dedication submitted the dj will play it soon
here's my code
<html>
<style>
h1 {
text-align: center;
text-transform: uppercase;
color: #fff;
}
body {
background-color: #ff0040;
}
input[type=submit] {
width: 300%;
background: linear-gradient(to right, #ff3300 0%, #000000 100%);
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background: linear-gradient(to right, #ff0000 0%, #000000 100%);
}
div {
border-radius: 5px;
background-color: #ffccff;
padding: 20px;
}
input[type=dedi], select {
padding: 17px;
border: 1px solid #4CAF50;
}
input[type=text], select {
padding: 17px;
border: 1px solid #4CAF50;
body {
color: white;
}
input[type=text], select {
padding: 17px;
border: 1px solid #4CAF50;
body {
color: white;
}
$.ajax({
type: "POST",
url: "Your Post URL",
success: function(result){
$('#your-div').html('<div>Thank you!</div>');
},
error: function (error) {
alert("There is a problem");
}
});
</style>
<head>
<title>Requests</title>
</head>
<body>
<center>
<h3>Request Ya Favorite Tune!!!</h3>
<form action="mailto:[email protected]" method="post"
enctype="text/plain">
<table>
<tr>
<td>Artist Name:</td>
<td>
<input type="text" name="artist" placeholder=
"Enter artist name">
</td>
</tr>
<tr>
<td>Artist Song:</td>
<td>
<input type="text" name="artist_song" placeholder=
"Enter artist song">
</td>
</tr>
<tr>
<td>Dedication:</td>
<td>
<input type="dedi" name="dedication" placeholder=
"Dedicate Here">
</td>
<tr>
<td>
<input type="submit" name="submit"
value="submit">
</td>
</tr>
</tr>
</table>
</form>
</center>
</body>
</html>