-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmail.php
More file actions
32 lines (32 loc) · 1.46 KB
/
mail.php
File metadata and controls
32 lines (32 loc) · 1.46 KB
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
29
30
31
32
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#form").submit(function() {
var form_data = $(this).serialize();
$.ajax({
type: "POST",
url: "php/form-processing.php",
data: form_data,
success: function() {
alert("Ваше сообщение отпрвлено!");
});
});
});
</script>
</head>
<body>
<form action="" method="post" id="form">
<div class="center modal-body">
<p>Пожалуйста заполните поля ниже, чтобы мы могли связатсья с Вами</p>
<input type="text" name="name" placeholder="Ваше имя" required="required" /><br/>
<input type="email" name="email" placeholder="Email" required="required" /><br/>
<input type="phone" name="phone" placeholder="Телефон" /><br/>
<textarea type="text" name="message" placeholder="Комментарий"></textarea><br/>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary center">
</div>
</form>
<div id="result"></div>
</body>