Click to See Complete Forum and Search --> : IP-adress, writing, reading


Ritz
02-25-2003, 02:11 AM
Hi,
I'm making a home page, on which my students can solve problems. Of course I can keep score using cookies, but that way only the students themselves can access that information.

I thought of the following:
When they visit my site for the first time, they register on a form (name, class, e-mail)
I give them an ID-number cookie or (even better) read their IP-address.
This IP-addres or ID is then written to a file together with their name, class, e-mail AND achievements. The next time they log on, they are recognized via their ID-number cookie or IP-address. All problems that they already solved will not appear then.

Moreover, I myself can see the progress, and I can see which students are using my home page at all.

I cannot find a way to do this in JavaScript, but is it possible? And if not, what should I use then? (Hopefully I do not need to learn another language as well)

I know that if I didn't need to follow the progres myself, I could do it with cookies. But I DO need to follow the progress.
Of course this can be done, the question is: How?

Please reply if you can help me any further. I'm stuck.

Nicodemas
02-25-2003, 02:43 AM
I'm afraid it will require a server side technology to do what you are suggesting. ASP and PHP are good starts. Since Javascript is a client-side language, it does not "save" information for you.

Also, IP addresses are constantly changing today's internet world. If two or more of your students access the web via the same internet provider, then there could be some confusion in IP Address assignment.

Regardless, you'll need a backend database system in order to accomplish what you want. Sorry.

khalidali63
02-25-2003, 12:48 PM
You can probably get away with getting IP-addresses using signed applets.(you can use Java directly in NS browsers to do get IP address).

Cheers

Khalid

Nevermore
02-25-2003, 03:33 PM
I would recommend using a log on/register script written in PHP or ASP, and not IP addresses, because your IP address changes, in most cases, every time you connect to the internet. If you need some help in PHP, I'll do my best, but your server may not support it. You will also need a database package on the server, e.g. MySQL, which is free for most use.