471,073 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

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.txt" structured like:
<username>;<password>;<date of birth>, for example:
"johndoe";"johnpass";"1985-11-25"
"marydoe";"marypass";"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


Jul 23 '05 #1
1 1728
Lee
R. van Laake said:

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.txt" structured like:
<username>;<password>;<date of birth>, for example:
"johndoe";"johnpass";"1985-11-25"
"marydoe";"marypass";"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?


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

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

friendjin
8 posts views Thread by friendjin | last post: by
6 posts views Thread by Per Juul Larsen | last post: by
3 posts views Thread by =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.