I wanted to know if I can pass back individual parameters from a php script to be stored in dfferent JS variables on the page I'm working on, while also returning generated html code from the php script along with those parameters.
Basically I would like to return some data like this from php using ajax:
$valid = "true";
$access = "false";
$htmlcontent="lorem ipsum<br/>some more text<b>bold</b>";
And all of this should go into equivalent javascript variables on my page, using ajax, so that I can contruct my response on the page using this data...