The server-side code in this example will be an XML file that contains all of the user data. In a real application, this XML file probably would be generated on the server side based on database information, which would make it more secure and reusable. The XML file will contain the first and last name, email address, username, and password, just as our form does:
<?xml version="1.0" encoding="iso-8859-1" ?> <users> <user firstName="Kris" lastName="Hadlock" email="firstname.lastname@example.org" username="kris" password="hadlock" /> </users>
Next, we’ll gather user data and compare it with the values saved in this file.