View Full Version : Simple login with XML table
May 3rd, 2007, 03:27 PM
Here is my xml table:
<?xml version="1.0" encoding="UTF-8"?>
<user userID="admin" password="leaf4rustle" permission="admin"> admin </user>
<user userID="fordham123" password="ram123" permission="student"> Fordham123 </user>
thanks in advance:
May 3rd, 2007, 03:52 PM
If you are creating a logon form, something will need to be server side.
Checking names against a document requires you to have a script read the file and find strings, I don't know if ECMAScript can do that, if it can, it won't do it very well.
PHP, can easily read files (also make, write,append, destroy), and is easy to learn. Python and Perl are also good for this.
If you must use client side technologies, it would be easier to store the names and information in an array and use ECMAScript to loop through it and look for matches, and then create content based on the information, that will not be secure at all, however.
MySQL + PHP would be better for this.
(I am assuming you are working in a web environment)
May 3rd, 2007, 07:30 PM
May 3rd, 2007, 08:25 PM
Try this, but it seems more complicated than using PHP.
You could also use PHP to make files and then read them. You would still have your xml document.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.