How to update a web page without reloading the web page using AJAX?
I'm trying to update info that a users entered in to开发者_运维技巧 a mysql database using php without reloading the web page how can I do this an example or tutorials will be nice.
If there is a tutorial on how to do this can you please share with me the link or links to the tutorial(s).
There's a nice Ajax tutorial here, and it does use PHP on the server side. Once you do fully understand how Ajax works, by the way, you may probably want to move to a Javascript framework that makes it easier, such as jquery, dojo or Google's Closure.
This question is about taking an email address from a user, adding it to a database (or otherwise processing it with php), and updating the web page without reloading the page, ajax style:
Javascript/css/php/mysql to collect user email addresses in a div on a website
The answer to that question should provide a good template for what you're looking for.
The W3Schools Ajax tutorial is a good place to start.
Pull jQuery in to your project and look at its get/post methods documentation.
精彩评论