PDA

View Full Version : AJAX PHP interaction


koolaid
03-07-2008, 01:46 PM
Hello,

I have just started to learn AJAX, I have knowledge of PHP. What I have now is a login script in PHP which I call through AJAX, but the problem is, I don't really know how to interact and display messages etc. for example if the PHP script has successfully logged in, I'll echo "Logged in", but should I use AJAX to catch the phrase "Logged in" and display a proper message? Or should I echo all the HTML in PHP instead and use document.xmlhttp.responseText to show it in AJAX?

Any help would be greatly appreciated!

Thanks.

abduraooft
03-07-2008, 02:05 PM
Have a look at Ajax Toolkit for PHP - SAJAX (http://www.modernmethod.com/sajax/)