Home > Backend Development > PHP Tutorial > PHP 获取 form URL 【急】

PHP 获取 form URL 【急】

WBOY
Release: 2016-06-13 11:28:41
Original
663 people have browsed it

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 />
Copy after login



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";
?>



求大神

PHP URL label
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template