Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2019 00:09
What would you like to do?
jQuery + AJAX + PHP: Part 1: Getting a Response
<meta charset="utf-8">
<script src=""></script>
<title>jQuery + AJAX + PHP: Part 1: Getting a Response</title>
<div id="log"></div>
method: "POST",
url: "response.php",
data: { name: "Dan", example: "Yup" }
.done(function( message ) {
.fail(function( message ) {
echo "Received " . $_REQUEST['name'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment