iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2006, 08:55 AM
WebProWorld Pro
 
Join Date: Sep 2003
Location: Internet
Posts: 214
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: 395
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
WebProWorld Pro
 
Join Date: Sep 2003
Location: Internet
Posts: 214
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: 395
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
WebProWorld Pro
 
Join Date: Sep 2003
Location: Internet
Posts: 214
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

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

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



All times are GMT -4. The time now is 11:19 AM.



Search Engine Optimization by vBSEO 3.3.0