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 #170720 is a reply to message #170713] Tue, 16 November 2010 16:00 Go to previous messageGo to previous message
BootNic is currently offline  BootNic
Messages: 10
Registered: November 2010
Karma:
Junior Member
On Tue, 16 Nov 2010 06:04:00 +0000
Jim Higgins <invalid(at)invalid(dot)invalid> wrote:

> On Mon, 15 Nov 2010 22:51:23 -0500, Jerry Stuckle
> <jstucklex(at)attglobal(dot)net> wrote:
>
>> On 11/15/2010 10:25 PM, Jim Higgins wrote:

[snip]

>>>
>>> <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.

[snip]

>> Is this on a page with a .php extension? Is your web server set
>> up to parse php files?
>
> Oh crap! HTM extension. And I know better! Changed the
> extension, works fine now. Thank you, Jerry!

[snip]

Nice to have it sorted yes.

Is there some reason that the ip address would be necessary to
place in a hidden input? Open to anyone that may take the time to
look and possiblely edit the source.

Can it not be taken when the form is processed?



--
BootNic http://bootnic.bounceme.net Tue Nov 16, 2010 11:00 am
A conclusion is the place where you get tired of thinking.
*Arthur Bloch*
[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: Tue Nov 26 00:09:17 GMT 2024

Total time taken to generate the page: 0.05028 seconds