Tuesday, March 22, 2011

Deleting record with Ajax using prototype.js and PHP

Tutorial's structure includes three files:

  • index.php (with a list of record you want to delete)
  • delete.php (PHP code to delete records into your database)
  • prototype.js (to enable Ajax)
Step 1: include prototype.js
Download prototype.js and create a new page (index.php). Add this line of code in the tag on index.php to include prototype framework:

It's all. I hope it's clear :

No comments:

Post a Comment