IP Tags

Results 1 to 3 of 3

Thread: IP Tags

  1. #1
    Join Date
    Dec 1969

    Default IP Tags

    Hiya all<BR><BR>I have created a members only web site and wish to allow the admin to pass a message to a member logged in using the IP address gathered when they logged in. Is this possible and if so, could someone please explain how.<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default no need IP

    you dont need the ip to pass a message to the user... just save the message on the database in a table like this<BR>example:<BR>RowID User_Id message <BR><BR>----------------<BR>where User_Id is how to identify your user, Row ID ease the deleting and updating procedures, and message is the message<BR>then on any user page put a code like:<BR>example:<BR>q="Select * from MyTable where User_ID = " & UserID<BR>set rs=cn.execute(q)<BR>do<BR> response.write "<BR>" & rs.fields("message") <BR> rs.movenext<BR>loop<BR><BR>-------------<BR> this can let you have an idea

  3. #3
    Join Date
    Dec 1969

    Default If it's a message for current user...

    ...that is, one who is logged in and active at the time...<BR><BR>Then instead of using a database, use Application variable(s).<BR><BR>No need for the DB overhead.<BR><BR>If you are keeping track of logged-in users in an App variable already (and how else do you know who is logged in?) then this is really pretty easy to do.<BR><BR>

Posting Permissions

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