-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (40 loc) · 1.19 KB
/
index.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
<?php
require_once 'connect.php';
?>
<!doctype html>
<html lang="tr-TR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<title>Document</title>
<script type="text/javascript">
$(document).ready(function(){
$("input[name=sea]").keyup(function(){
var value = $(this).val();
var sea = "value="+value;
$.ajax({
type:"POST",
url:"ajax.php",
data: sea,
success: function(sonuc){
$("#result").show().html(sonuc);
}
});
});
});
</script>
</head>
<body>
<form action="">
<div>
<input type="search" name="sea" id="sea">
</div>
<div>
<p id="result"></p>
</div>
</form>
</body>
</html>