Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Oracle Technology Network:
Creating an Ajax Process Using PHP and Oracle
Jan 31, 2007 @ 17:07:00

From the Oracle Technology Network website, there's a new tutorial in the Oracle+PHP Cookbook series that focuses on using PHP and Oracle together with Ajax to create a simple HTML form example.

In this recipe, I discuss all the code necessary to use Ajax to go from a simple Web page to a JavaScript function to an XMLHttpRequest to a PHP script and, finally, to an Oracle database. Along with the code, I do talk about the individual pieces with respect to the whole picture: what each chunk does and why it's important. By reading this HowTo, you will acquire not only some sample code but also, hopefully, a broader understanding of the whole Ajax concept.

They step through the creation of the background database tables, including the insertion of some sample data. Next up is the creation of the query to run our check, then testing the script to ensure things are set up as they need to be, and finally, creating the front-end - writing the HTML and Javascript to make the form.

The end result is a simple form that, when the contents of the text field are changed, a message is sent back to the server to check and see if the email address entered already exists.

tagged: ajax oracle database html javascript email validation tutorial ajax oracle database html javascript email validation tutorial

Link:


Trending Topics: