AJAX Return Problem from data sent via jQuery.ajax
- by Anthony Garand
I am trying to receive a json object back from php after sending data to the php file from the js file.
All I get is undefined.
Here are the contents of the php and js file.
data.php
<?php
$action = $_GET['user'];
$data = array( "first_name" = "Anthony",
"last_name" = "Garand",
"email" =…