mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 21:43:06 +05:30
(feat): implemented basic search result fetching ajax logic
This commit is contained in:
11
htdocs/core/handle_search.php
Normal file
11
htdocs/core/handle_search.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
require 'connection.php';
|
||||
require 'query_functions.php';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (isset($_POST['keyword'])) {
|
||||
$keyword = $_POST['keyword'];
|
||||
echo json_encode(array("keyword-recived" => $keyword));
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user