I need to POST form values to a PHP page and expect an AJAX response.

I normally do this with JSON but I can't use JSON in current situation. The response is always text/html but I need to do something like this:

```
if(response.status == 'success')
     //success codes
else
     //error codes

```

How can I do this? Only by hacking returned HTML response and regexing for "success" word anywhere?

PS. No XML/YML either.