Skip to content

This set of files is a simple template for creating an HTML form that creates/updates a MySQL database through an Ajax connection.

Notifications You must be signed in to change notification settings

jbinkleyj/AjaxDatabaseForm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Ajax Database Form

This set of files is a simple template for creating an HTML form that creates/updates a MySQL database through an Ajax connection.

Setup:

The only thing you NEED to do is edit the form.php file and set the appropriate values for the five variable at the top of the file. You'll need your server name (use "localhost" ifyou're not sure), your database name, your username for accessing the database, yourpassword for accessing the database, and the name of the table within the database you wantto use/create.

If you want to use Recaptcha with your form, you'll have to add your Recaptcha Private Key to the proper variable assignment near the top of the form.php file. You'll also have to change a few variable assignments near the top of the /js/form.js file. Set DBForm.recaptchato true, change the Recaptcha theme if you wish, and assign your Recaptcha Public Key asDBForm.recaptchaPublicKey.

More information can be found in this blog post:

http://www.bendemeyer.com/2013/03/01/using-an-ajax-powered-web-form-to-update-a-database/

About

This set of files is a simple template for creating an HTML form that creates/updates a MySQL database through an Ajax connection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published