Jump to content

[SOLVED] php form value question


sonny

Recommended Posts

Hi I am new to PHP but trying new things every day.

 

I am trying to pass a IP address over to display.php

this is my simple form page code below.

 

<form action="display.php" method="post">
Name: <input type="text" name="IP" />
<input type="submit" />
</form>

 

 

And this is the code line inside my next page named display.php I need to insert

that ip address into, my line below causes errors can someone show me the correct

syntax to do this?

 

$location = GeoIP_record_by_addr($gi, '$_POST["IP"]');

 

I am trying to place a IP address entered in a form into that location= above

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/167337-solved-php-form-value-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.