Send data back to the script using return text on the PHP file.
Personally, what I do is base64_encode data fields that are separated by semi-colons, and a new line to separate data for different fields. Maybe
this will give you a better description of what I mean.