title: latitude and longitude through a form in the datatype POINT
body: <p>I will insert the latitude and longitude through a form in the datatype POINT, but got error:</p>
  
  <p><strong>Cannot get geometry object from data you send to the GEOMETRY field</strong></p>
  
  <pre><code>$user_ip = getenv(‘REMOTE_ADDR’);
  $geo = unserialize(file_get_contents(“http://www.geoplugin.net/php.gp?ip=$user_ip”)); 
  $latitude = $geo[“geoplugin_latitude”];
  $longitude = $geo[“geoplugin_longitude”];
  $coords = $geo[‘geoplugin_latitude’] .’,’. $geo[‘geoplugin_longitude’];
  $coords = $latitude.$longitude;
  $query .=  "point = '" . $coords . "',";
  </code></pre>
  
  <p>Any idea how to store the lat and lon the right way to the POINT column.</p>
  
  <p>I think there must a conversion for the latitude and longitude with output like something as</p>
  
  <pre><code>0x0000000001010000001ac05b2041d84140e2cd757522766140
  </code></pre>