Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,859
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •