Login and register system using xml (help)


I am a web developer that been asked by a client to create a login and register system that uses XML to pulls data from a external database server.

i know hmtl, php and php

the login and register system is for a loyalty card. i have already create the website. the client want the loyalty card holder to be able to go to the website click on the login button enter their card number and password then be taken to the next page that displays only their name, card number and points earned.

the client was given a xml codes to choose from, what do they want to display and they choose to displays only loyalty card holder name, card number and points earned.

that xml was given to them by the company that manages the loyalty card transactions.

example of xml code:

the code in code is the code that the client wants to pull out
this is only some of the code provided
Account History



is it a good idea to follow this:

Build a Login and Registration System with XML

Build a Login and Registration System with XML | Nettuts+


please help
thanks in advance

:stir::For the register/login buttons I used the following if conditions::stir::

if (Network.isClient)
login = true;//or register for the other button
networkView.RPC(“Send”, RPCMode.Server, name, pass, login, register);
login = false;//or register for the other button
I ran this inside OnGUI under the button code:

if (Network.isServer&&login==true){ //or register
login=false;//or register for the other button
//regular code that was executed when button was pressed
and the following RPC:

function Send(name:String,pass:String,login:Boolean,register:Boolean,info:NetworkMessageInfo)
if ( Authenticate(name,password,login,register) )
networkView.RPC( “OnRegisterSuccess”, info.sender );
networkView.RPC( “OnRegisterFailure”, info.sender );

thanks for the reply

can point in the right direction -
can i use visual basics to achieve this?
where would put the code?
how can i display the information after the card holder has login in?