FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Get IP Address Help
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Get IP Address Help [message #170709] Tue, 16 November 2010 03:25 Go to previous message
Jim Higgins is currently offline  Jim Higgins
Messages: 20
Registered: November 2010
Karma:
Junior Member
PHP 5.2.13

I'm trying to capture a visitor's IP address in a web form (a ballot
for club office) and am coming up empty handed. Purpose is to head
off ballot box stuffing. All sorts of Googling keeps coming up with
the following...

<input type="hidden" name="ip"
value="<?php echo $_SERVER['REMOTE_ADDR'] ?>">

which just gives me the literal PHP script between the double quotes
instead of the voter's IP address.

Help please?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to do the String concatenation with PHP - running a little Parser based on cURL
Next Topic: setup of curl-multi: looping over a bunch of sites [how to adress the array]
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 21:01:29 GMT 2024

Total time taken to generate the page: 0.05101 seconds