最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - How to update a web page without reloading the web page using AJAX? - Stack Overflow

programmeradmin6浏览0评论

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).

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).

Share asked Dec 20, 2009 at 2:43 awolawol 391 silver badge2 bronze badges 0
Add a ment  | 

4 Answers 4

Reset to default 2

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.

发布评论

评论列表(0)

  1. 暂无评论