To cut a long story short, I have an array of data which is sent via Ajax to my php script.
The array is made up of an unlimited amount/type of form inputs. I retrieve the input ID and value and push them to said array.
$data = $_POST['data'];
foreach($data as $d) {
echo $d;
}
Using the code above I am able to console.log the response as
&name=John Doe&email=johndoe@example.com&message=Message Content
How can I carve up this string to use as separate variables in PHP.. for example $name
or $email
?