waytech2003
Programmer
First off let me say I am new to php and AJAX.
I am fairly good in javascript and HTML.
I am working on a new project.
I have an AJAX XMLHttpRequest sent to a php page, which returns a string via echo.
Example of my return responce would be this as the last 2 lines in my php page.
echo "TEST";
?>
I get back what looks like "TEST" in an alert box, alert(xmlhttp.responseText);
but if I test it against a string it fails. When I check it as follows...
alert(xmlhttp.responseText=="TEST");
I get false.
Is php sending something I do not know about in the echo command?
I am fairly good in javascript and HTML.
I am working on a new project.
I have an AJAX XMLHttpRequest sent to a php page, which returns a string via echo.
Example of my return responce would be this as the last 2 lines in my php page.
echo "TEST";
?>
I get back what looks like "TEST" in an alert box, alert(xmlhttp.responseText);
but if I test it against a string it fails. When I check it as follows...
alert(xmlhttp.responseText=="TEST");
I get false.
Is php sending something I do not know about in the echo command?