read from a textfile?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R. van Laake

    #1

    read from a textfile?

    Hi,

    I have a database with information of my users, lets say their date of
    birth.

    I want them to be able to go to my site, and login with a username and
    password, after which they get to see what their date of birth is (according
    to what's stored in the database).

    I want to upload a textfile named "userinfo.t xt" structured like:
    <username>;<pas sword>;<date of birth>, for example:
    "johndoe";"john pass";"1985-11-25"
    "marydoe";"mary pass";"1986-02-12"


    What's the javascript to have a "username/password" box popup, and when a
    valid name/pass was entered show the appropriate date of birth?

    Thanks,

    Ray




  • Lee

    #2
    Re: read from a textfile?

    R. van Laake said:[color=blue]
    >
    >Hi,
    >
    >I have a database with information of my users, lets say their date of
    >birth.
    >
    >I want them to be able to go to my site, and login with a username and
    >password, after which they get to see what their date of birth is (according
    >to what's stored in the database).
    >
    >I want to upload a textfile named "userinfo.t xt" structured like:
    ><username>;<pa ssword>;<date of birth>, for example:
    >"johndoe";"joh npass";"1985-11-25"
    >"marydoe";"mar ypass";"1986-02-12"
    >
    >
    >What's the javascript to have a "username/password" box popup, and when a
    >valid name/pass was entered show the appropriate date of birth?[/color]

    You need to use some server-side code for that.
    Do you know that your server supports server-side Javascript?

    Comment

    Working...