Please note: this article was incorrectly attributed to PHPHacks.com. The correct author/site has been identified and the information below is the correct information.
phpPatterns brings another tutorial to the PHP community today with this guide to creating XUL applications with the help of PHP.
XUL, or the XML User Interface language, is the common thread running through all Mozilla-powered applications - both desktop and web-based. XUL is a way to describe an application's user interface using XML. XUL is similar in many ways to HTML, while borrowing from, yet not exactly imitating its syntax.
To start off with, we need a simple XUL file that contains a form. This form could consist of anything, but for this example, I will be using a simple Login form that you might be familiar with while building web applications.