PHP 获取 form URL 【急,在线等】
有两张页面。
index.html 和 index_do.php
index.html:
<br />
<form name="userlogin" action="/member/index_do.php" method="POST"><br />
<label>帐 号</label><input type="text" name="userid"/><br />
<label>密 码</label><input type="password" name="pwd"/><br />
<input type="submit" value="立即登录" /><br />
</form><br />
PHP:怎样获取来自页面的提交地址?
因为index.html是被N张页面调用的。
比如以下页面调用了index.html提交了登录数据:
①、http://localhost/
②、http://localhost/works/
③、http://localhost/works/end/index.html
想要的结果:
index_do.php
//页面③中提交了登录数据
echo "你是从以下地址中登录的:"."http://localhost/works/end/index.html";
?>
求大神
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn