PHP COURSE • LESSON 55
PHP AJAX
AJAX allows websites to send requests without refreshing the page.
JavaScript AJAX
fetch("data.php")
.then(response =>
response.text()
)
.then(data => {
console.log(data);
});
Benefits
- Faster websites
- Better user experience
- Dynamic content loading