View Single Post
Old 03-07-2008, 12:46 PM   PM User | #1
koolaid
New Coder

 
Join Date: Aug 2007
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
koolaid is an unknown quantity at this point
Question AJAX PHP interaction

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.

Last edited by koolaid; 03-07-2008 at 12:50 PM..
koolaid is offline   Reply With Quote