-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback.php
executable file
·55 lines (52 loc) · 1.3 KB
/
feedback.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<?php
$title="contacts";
require_once "blocks/head.php"
?>
<script type="text/javascript">
$(document).ready(function(){
$("#done").click(function(){
var name = $("#name").val();
var email = $("#email").val();
var tema = $("#tema").val();
var message = $("#message").val();
});
$.ajax({
url: 'ajax/feedback.php',
type: 'post',
cache: false,
data: {'name':name, 'email': emeil, 'tema':tema, 'message': message},
dataType: 'html',
success: function(data){
$('#show').html(data + "<div class='clear'><br></div>");
$('#show').show();
}
});
});
</script>
</head>
<body>
<?php
require_once "blocks/header.php";
?>
<div class="clear"></div>
<content>
<div class="left_column"></div>
<div class="center_column">
<input type="text" placeholder="name" name="name" id="name"><br/>
<input type="text" placeholder="email" name="email" id="email"><br/>
<input type="text" placeholder="tema" name="tema" id="tema"><br/>
<textarea name="message" id="message"></textarea><br/>
<input type="button" name="done" id="done" value="send"><br/>
<div id="show"></div>
</div>
<div class="right_column"></div>
</content>
<div class="clear"></div>
<?php
require_once "blocks/footer.php"
?>
</body>
</html>