怎样实现真正的ip,mobile查询功能,是否一定需要ip地址库
++ 您的ip:[218.22.25.39] 来自: 安徽省 合肥市 电信 ++
请输入域名或IP 查询
请输入手机号码前7位 查询
界面我是可以实现的,但是没有现成的ip地址库
原来html:
<<form method="post" href="http://e786.com/ip/index.php">
<tr class=tdc bgcolor=#EFF1F3>
<td width="130" align="center" noswap>请输入域名或IP</td>
<td width=* align="center"><input type="hidden" name="action" value='ip'><input type="text" name="query_ip" size="20" class=tdc> <input type="submit" value="查 询" name="B1" class=bdtj></td>
</tr></form>
<form method="post" action=index.php>
<tr class=tdc bgcolor=#EFF1F3>
<td width="130" align="center" noswap>请输入手机号码前7位</td>
<td width=* align="center"><input type="text" name="query_mobile" size="20" class=tdc><input type="hidden" name="action" value='mobile'> <input type="submit" value="查 询" name="B1" class=bdtj></td>
</tr></form>
</table>
<br>
其中action=index.php怎么真正实现