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
Re: Get IP Address Help [message #170710 is a reply to message #170709] Tue, 16 November 2010 03:51 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/15/2010 10:25 PM, Jim Higgins wrote:
>
> 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?

Is this on a page with a .php extension? Is your web server set up to
parse php files?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Mon Nov 25 01:41:22 GMT 2024

Total time taken to generate the page: 0.04014 seconds