SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    login and register system using xml (help)

    hi

    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

    <AccountHistory>
    <standardHeader>
    <requestId>string</requestId>
    <localeId>string</localeId>
    <systemId>string</systemId>
    <clientId>string</clientId>
    <locationId>string</locationId>
    <terminalId>string</terminalId>
    <terminalDateTime>string</terminalDateTime>
    <initiatorType>string</initiatorType>
    <initiatorId>string</initiatorId>
    <initiatorPassword>string</initiatorPassword>
    <externalId>string</externalId>
    <batchId>string</batchId>
    <batchReference>string</batchReference>
    </standardHeader>
    <account>
    <accountId>string</accountId>
    <pin>string</pin>
    <entryType>string</entryType>
    </account>
    <report>
    <type>string</type>
    <minimumDate>string</minimumDate>
    <maximumDate>string</maximumDate>
    <offset>string</offset>
    <maxRecords>string</maxRecords>
    </report>

    </AccountHistory>
    <EOF>

    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+

    or

    please help
    thanks in advance

  2. #2
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    :For the register/login buttons I used the following if conditions::

    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:

    @RPC
    function Send(name:String,pass:String,login:Boolean,register:Boolean,info:NetworkMessageInfo)
    {
    if ( Authenticate(name,password,login,register) )
    {
    networkView.RPC( "OnRegisterSuccess", info.sender );
    }
    else
    {
    networkView.RPC( "OnRegisterFailure", info.sender );
    }
    }

  3. #3
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

    thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •