A basic knowledge of PHP form submission_PHP tutorial
- WBOYOriginal
- 2016-07-21 15:26:53982browse
register.php:
复制代码 代码如下:
request.php
复制代码 代码如下:
$username = $_POST['username'];
$name = $_POST['name'];
$pwd = $_POST['pwd'];
$email = $_POST['email'];
//print_r($username);
if(!empty($username))
{
echo "您填写的信息为:
n";
echo "用户名: $username
n";
echo "姓名: $name
n";
echo "密码: $pwd
n";
echo "邮箱: $email
n";
}
print_r($_POST)
//echo "aaaa";
?>
当然,你也可以把request跟regiser.php写到一起。
http://www.bkjia.com/PHPjc/323863.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/323863.htmlTechArticleregister.php: 复制代码 代码如下: html head meta http-equiv="Content-Type" content="text/html;charset=gb2312" title注册页面/title /head body form action="request.php" met...
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