问题描述
我使用PHP smarty模板进行开发,当我在我的网站上使用用户提交表单的ip location finder API时,表单无法提交,而是在查看源代码中显示
<script>document.cookie = "humans_21909=1"; document.location.reload(true)</script>
我使用这个网址来收集表单提交时的用户 ipo 地址:
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'];
}
我能知道 smarty 模板引擎是否与这个 ip API 冲突吗?还是有其他冲突?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)