< table width="330" border="0" align="center" cellpadding="5" bgcolor="#eee"/> < table width="330" border="0" align="center" cellpadding="5" bgcolor="#eee">

Home >Backend Development >PHP Tutorial >Submit a basic knowledge of PHP form submission

Submit a basic knowledge of PHP form submission

WBOY
WBOYOriginal
2016-07-29 08:45:59879browse

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写到一起。

以上就介绍了提交 PHP的一个基础知识 表单提交,包括了提交方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

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
Previous article:web开发 PHP和Mysqlweb应用开发核心技术 第1部分 Php基础-3 代码组织和重用2Next article:cookies设置 PHP setcookie设置Cookie用法及设置无效的问题

Related articles

See more