How to use Get Request with Ajax in PHP




How to use Get Request with Ajax in PHP

Hi friends,

In this post, we will learn how to PHP Ajax GET Request Example. i explained simply step by step jQuery AJAX GET Methods example with PHP. Here you will learn jQuery Ajax GET Request method with PHP. This tutorial will give you simple example of How to send GET AJAX request with JavaScript.

I will give you simple Example of how to Ajax GET request with jQuery and PHP.

So let's see bellow example:


<!DOCTYPE html>

<html lang="en">


<meta charset="utf-8">

<title>How to use Get Request with Ajax in PHP</title>

<link href="" rel="stylesheet">

<script src=""></script>

<style type="text/css">




<div class="container" style="margin-top: 150px;">

<h1 class="text-center">How to use Get Request with Ajax in PHP</h1>

<div class="card mt-5">

<div class="card-header">

<h3 class="text-center">Content of The Result Will be Replaced by The Server Date and Time</h3>


<div class="card-body">

<div id="result"></div>


<div class="card-footer text-end">

<button type="button" class="btn btn-primary">Date and Time</button>


<div class="stap"></div>







$.get("date-time.php", function(data){









echo date("F d, Y h:i:s A");



I hope it will help you....