Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2006, 08:55 AM
Manpasand's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: SprightlyMedia.Com
Posts: 189
Manpasand RepRank 0
Default how IP address record?

I dont know whether is a good place to post this thread, sorry if not.

Is there a way to record the IP address of users? I would like to be able to verify the geographic location of a users.
Reply With Quote
  #2 (permalink)  
Old 05-27-2006, 11:02 AM
sands's Avatar
WebProWorld Veteran
 

Join Date: Sep 2005
Location: Kerala, India
Posts: 397
sands RepRank 1
Default

In PHP the IP can be known with the $REMOTE_ADDR variable and can be used to print out the IP or store it in a database or file.
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #3 (permalink)  
Old 05-27-2006, 12:42 PM
Manpasand's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: SprightlyMedia.Com
Posts: 189
Manpasand RepRank 0
Default

Site is in pure html and form processing method is cgi.
Reply With Quote
  #4 (permalink)  
Old 05-27-2006, 10:41 PM
sands's Avatar
WebProWorld Veteran
 

Join Date: Sep 2005
Location: Kerala, India
Posts: 397
sands RepRank 1
Default

Quote:
Originally Posted by Manpasand
Site is in pure html and form processing method is cgi.
Have no idea of CGI, sorry!
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #5 (permalink)  
Old 05-28-2006, 01:52 AM
Manpasand's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: SprightlyMedia.Com
Posts: 189
Manpasand RepRank 0
Default

I got the hint from your response and later I do some tests and found the solution which I want to share with you.

I have put INPUT tag in form section with
<INPUT TYPE="hidden" NAME="env_report" VALUE="REMOTE_ADDR">

Thanks
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0