PHP 获取 form URL 【急,在线等】
有两张页面。
index.html 和 index_do.php
index.html:
<br /><br /> <label>帐 号</label><br /> <label>密 码</label><br /> <br /><br />
PHP:怎样获取来自页面的提交地址?
因为index.html是被N张页面调用的。
比如以下页面调用了index.html提交了登录数据:
①、http://localhost/
②、http://localhost/works/
③、http://localhost/works/end/index.html
想要的结果:
index_do.php
<?php
//页面③中提交了登录数据
echo “你是从以下地址中登录的:”.”http://localhost/works/end/index.html”;
?>
求大神