title: IP API in php smarty template engine
body: <p>I used the php smarty template for development, and when i use ip location finder API of user submitting a form on my website, the form could not be submitted, instead, in view source, it shows</p>
  <pre><code>&lt;script&gt;document.cookie = &quot;humans_21909=1&quot;; document.location.reload(true)&lt;/script&gt;
  </code></pre>
  <p>i used this url for collecting user ipo address on form submit:</p>
  <pre><code>function getfromipdata_lon(){
      $query=@unserialize(file_get_contents('http://ip-api.com/php/'.$ipdataloc));
      return $query['lon'];
  }
  
  
  function getfromipdata_lat(){
      $query=@unserialize(file_get_contents('http://ip-api.com/php/'.$ipdataloc));
      return $query['lat'];
  }
  </code></pre>
  <p>Can I know whether the smarty templating engine conflicts with this ip API ? or is there any other conflict?</p>