Reply
AJAX PHP interaction
Old 03-07-2008, 08:52 AM AJAX PHP interaction
Average Talker

Posts: 20
Hello,

I have just started to learn AJAX, I do 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.
koolaid is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-07-2008, 11:09 PM Re: AJAX PHP interaction
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 1,003
Name: Jeremy Miller
Location: Reno, NV
Well, just displaying "logged in" isn't very friendly. When they have logged in, why not show them something they're interested in? For example, lastest news, a control center, recent data, or targeted content. You have a chance to influence your users' behavior, so take advantage of it.
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to AJAX PHP interaction
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10962 seconds with 12 queries