 | Level: Intermediate (syakovac@gmail.com), Software engineer, Freelance
27 Mar 2007 This six-part series demonstrates how to leverage the power of XForms in conjunction with MySQL and PHP for support processing to create an online accounting tool called X-Trapolate. Every good programming technology possesses a range of problems it excels at solving. The series highlights some of the problems that the XForms solves effectively, such as the need for live calculations and greater interactivity. Part 2 of this six-part series demonstrates how to leverage the power of XForms in conjunction with PHP and MySQL to create the basic "login," "registration," and "account management" functionality seen in many modern Web applications.
In this tutorial
- First, the tutorial will address some of the basics of XForms development including text entry, password-obscuring text entry, and the data structures that are required.
- Then, the tutorial will cover the processing of the XForms data in PHP and the supporting MySQL database structures.
- The last part of the login is addressing what happens when a login is successful or unsuccessful.
Prerequisites
This tutorial uses a MySQL database for storage and reference. Necessary SQL commands appear throughout the article, but require a working knowledge of MySQL. PHPMyAdmin offers equivalent access to configure the MySQL database and view the entries from a menu-driven graphical interface. Though the purpose of the series is to educate the reader about the use of XForms, some background knowledge is expected of the reader. There are some very good articles and introductory series concerning XForms available on developerWorks. XForms is built on XML, and, hence, a basic understanding of XML is also assumed. Other technologies and concepts may also be involved, but they will be to a much lesser extent and should be inconsequential to the reader's comprehension of the topic.
System requirements
- A browser capable of displaying XForms, such as Firefox 2.0.1.
- A Web server with PHP enabled, such as WAMP
- An SQL server, MySQL, which is part of the WAMP package in this case.
Duration
1 hour
Formats html, pdf
About this tutorial
This tutorial is for Web application developers investigating the XForms Web form processing technology. This tutorial is the first tutorial and second installment of a six-part series. The login form and account registration forms are developed in this tutorial. First, the tutorial will address some of the basics of XForms development including text entry, password obscuring text entry, and the data structures that are required. Then, the tutorial will cover the processing of the XForms data in PHP and the supporting MySQL database structures. The last part of the login is addressing what happens when a login is successful or unsuccessful. A requirement to being able to log in is having an account. The creation of accounts is made possible through a registration process, which is covered after the login.
|  | |  |