Ajax
Date: 07/06/07
(WebDesign) Keywords: php, html, xml, database, java, microsoft
I'm trying to teach myself how to use Ajax with PHP. It's been years since I've used JavaScript for anything so I'm beyond rusty.
I've been using the Apress Beginning Ajax with PHP book and I've been learning quite a bit, but I haven't found a single code sample from that book that actually worked the way it was written.
So, I come to you with my situation: Right now, I have one field in a form. There will eventually be more, but I'd like to see if I can get just a single field to work for me before I start jumping ahead. Anyway: 1 field on a form, and one submit button. In theory, when I click on the submit button, I'd like the value to be input into the database.
I have bigger ideas for what I want to do with this project, but for now, just a little success with the database updating would be nice.
Note: The code is based off of a contacts form I found on the internet. I figured for learning purposes, it would be a good way to start, that way, once I figure out the trick to making ajax do what I want in this instance, I can write my own.
AJAX Recipe Form
AJAX Recipe Form
Inserting recipe via slick AJAX. Hold on just a sec…
Success! Your recipe has been sent.
FYI: This'll be cross posted a bit.
Source: http://community.livejournal.com/webdesign/1278123.html