mayja
Posts: 3
|
Posted: 04/25/2004, 4:13 AM |
|
Hello
I have a table with memberdetails, to keep it simple say:
name, city, ipnumber
How can I archieve that members only see their own details without logging in (based on ipnumber)
Thanks in advance
Mayja
|
|
|
peterr
Posts: 5971
|
Posted: 04/25/2004, 1:07 PM |
|
You can create a parameter in your grid's Data Source ( http://docs.codecharge.com/studio/html/UserGuide/Forms/ug285.png ). In the Parameter Source you would enter the function that retrieves the user's IP (based on your programming language) and you would select "Expression" as the Type.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
mayja2
|
Posted: 04/25/2004, 1:10 PM |
|
thanks for the answer, but what is the function that retrieves the user's IP? Using MSAccess - ASP
Thanks in advance
|
|
|
peterr
Posts: 5971
|
Posted: 04/25/2004, 1:51 PM |
|
Let me first say that to find the user records you'd already need to have those IP addresses stored in your database, therefore I assumed that you've already used some function to store the users' IP addresses in your memberdetails table.
Here are some examples of retrieving a user's IP in ASP that I found on the net: http://www.w3schools.com/asp/coll_servervariables.asp http://forums.devshed.com/showthread.php?t=134618
(Note: please post ASP-related questions in the ASP forum)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
DonB
|
Posted: 04/26/2004, 5:49 AM |
|
Be sure you think about the possibility of a "dynamic IP" having been
assigned to your intended users. This would possibly render their access
denied if and when they acquired a different IP address. Worse, it might
grant access to someone who should not have access. Most home users
(whether using dialup, cableTV or DSL) are given dynamic IP addresses by
their internet provider.
--
DonB
http://www.gotodon.com/ccbth
"mayja2" <mayja2@forum.codecharge> wrote in message
news:2408c1b4aaa38c@news.codecharge.com...
> thanks for the answer, but what is the function that retrieves the user's
IP?
> Using MSAccess - ASP
>
> Thanks in advance
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|