IP lookup

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

IP lookup

Post by malcolmboston »

ive been looking for a while now so i thought id ask you guys as im sure someone will know

im looking for an IP address lookup (with GEO location) that accepts GET parameters for the IP address, having google Maps would be a major advantage.

Eagerly awaiting a reply.

Mal
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

Post by SpecialK »

This site uses a post, but that is a trivial workaround when using it as a link

http://www.ip-adress.com/
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

the 'trivial' workaround does not appear to work.

eg this site says you should use

http://www.ip-adress.com/&title=80.3.64.9

Doesnt work.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

does anyone know why this is?
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

Post by SpecialK »

That's because the site uses a post and not a get.

Code similar to this "should" work.

Code: Select all

<form method=post action="http://www.ip-adress.com">
       <input name="custom_ip_address" type="text" value="24.24.24.24" size="20" maxlength="20">
         <input name="submit" type="submit" value="lookup any ip">
</form>
I've tested it but can't seem to get it working. I think it's just not posting to the correct page that they want. Although I haven't looked at their code too thoroughly.[/syntax]
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

Thats is what the site says, thats a GET method
Lucian
Forum Newbie
Posts: 1
Joined: Thu Feb 22, 2007 7:11 am

Post by Lucian »

http://www.ipgp.net offers some options for webmasters to get the location of an IP.
visitor-Q
Forum Commoner
Posts: 72
Joined: Mon Feb 05, 2007 1:40 am

Post by visitor-Q »

Post Reply