How to update a web page without reloading the web page using AJAX?

后端 未结 4 646
不思量自难忘°
不思量自难忘° 2021-01-14 10:38

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.

相关标签:
4条回答
  • 2021-01-14 11:07

    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.

    0 讨论(0)
  • 2021-01-14 11:14

    The W3Schools Ajax tutorial is a good place to start.

    0 讨论(0)
  • 2021-01-14 11:14

    Pull jQuery in to your project and look at its get/post methods documentation.

    0 讨论(0)
  • 2021-01-14 11:20

    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.

    0 讨论(0)
提交回复
热议问题