展开全部
同一文件:
<?php
$username=$_GET['username'];
$pwd=$_GET['password'];
echo "用户名:".$username;
echo "密码:".$pwd;
?>
<html>
<head><title></title></head>
<body>
<form action="#">
用户名: <input type="text" name="username" value="">
密码:<input type="password" name="password" value="">
<input type="submit" value="提交">
</form>
</body>
</html>
两个文件:
aa.php
<?php
$username=$_GET['username'];
$pwd=$_GET['password'];
echo "用户名:".$username;
echo "密码:".$pwd;
?>
bb.html
<html>
<head><title></title></head>
<body>
<form action="aa.php" method="get">
用户名: <input type="text" name="username" value="">
密码:<input type="password" name="password" value="">
<input type="submit" value="提交">
</form>
</body>
</html>
<?php
$username=$_GET['username'];
$pwd=$_GET['password'];
echo "用户名:".$username;
echo "密码:".$pwd;
?>
<html>
<head><title></title></head>
<body>
<form action="#">
用户名: <input type="text" name="username" value="">
密码:<input type="password" name="password" value="">
<input type="submit" value="提交">
</form>
</body>
</html>
两个文件:
aa.php
<?php
$username=$_GET['username'];
$pwd=$_GET['password'];
echo "用户名:".$username;
echo "密码:".$pwd;
?>
bb.html
<html>
<head><title></title></head>
<body>
<form action="aa.php" method="get">
用户名: <input type="text" name="username" value="">
密码:<input type="password" name="password" value="">
<input type="submit" value="提交">
</form>
</body>
</html>
展开全部
<?php
echo "用户的输入如下所示:<BR>";
echo "姓名:".$_GET['username']."<BR>";
echo "密码:".$_GET['password']."<BR>";
echo "密码确认:".$_GET['password2']."<BR>";
echo "性别:".$_GET['sex']."<BR>";
echo "生日:".$_GET['birthday']."<BR>";
echo "E-mail:".$_GET['email']."<BR>";
echo "职业:".$_GET['job']."<BR>";
?>
echo "用户的输入如下所示:<BR>";
echo "姓名:".$_GET['username']."<BR>";
echo "密码:".$_GET['password']."<BR>";
echo "密码确认:".$_GET['password2']."<BR>";
echo "性别:".$_GET['sex']."<BR>";
echo "生日:".$_GET['birthday']."<BR>";
echo "E-mail:".$_GET['email']."<BR>";
echo "职业:".$_GET['job']."<BR>";
?>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
kk.php
<form id="form1" name="form1" method="post" action="check.php">
<table width="200" border="1" align="center">
<tr>
<td>用户名</td>
<td><label>
<input name="name" type="text" size="16" maxlength="7" />
</label></td>
</tr>
<tr>
<td>密 码</td>
<td><input name="passwd" type="password" size="16" maxlength="7" /></td>
</tr>
<tr>
<td colspan="2"><label>
<input type="submit" name="Submit" value="提交" />
</label></td>
</tr>
</table>
</form>
check.php
<?php
$name=$_POST["name"];
echo $name;
?>
<form id="form1" name="form1" method="post" action="check.php">
<table width="200" border="1" align="center">
<tr>
<td>用户名</td>
<td><label>
<input name="name" type="text" size="16" maxlength="7" />
</label></td>
</tr>
<tr>
<td>密 码</td>
<td><input name="passwd" type="password" size="16" maxlength="7" /></td>
</tr>
<tr>
<td colspan="2"><label>
<input type="submit" name="Submit" value="提交" />
</label></td>
</tr>
</table>
</form>
check.php
<?php
$name=$_POST["name"];
echo $name;
?>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
$_POST["表单名"];
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询