reg.php
-------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk2312" />
<title>php</title>
</head><body>
<center>User Register</center>
<fieldset>
<form method="post" action="post.php" name="f1">
<table border="0" cellspacing="4" cellpadding="0" align="center" width="200">
<tr>
<td align="right">user:</td>
<td><input type="text" name="user" id="user" size="12" /></td>
</tr>
<tr>
<td>password:</td>
<td><input type="password" name="psw" id="psw" size="12" /></td>
</tr>
<tr>
<td align="right">sex:</td>
<td><input type="radio" name="rdo" id="rdo" checked="checked" value="male" />male
<input type="radio" name="rdo" id="rdo" value="woman" />woman</td>
</tr>
<tr>
<td align="right">age:</td>
<td><input type="text" name="age" id="age" size="1" /></td>
</tr>
<tr>
<td valign="top" align="right">person:</td>
<td><textarea name="meum" id="meum" rows="15" cols="30"></textarea></td>
</tr>
<table align="center" width="200">
<tr>
<td><input type="submit" name="sub" id="sub" value="submit" /></td>
<td width="100"><input type="reset" id="rst" name="rst" value="reset" /></td>
</tr>
</table>
</table>
</form>
</fieldset>
</body>
</html>post.php
---------------------------------
<?php include "conn.php" ?>
<?php
echo "print: ".$_request['user']."<br>";
echo "print: ".$_request['psw']."<br>";
echo "print: ".$_request['age'];
?>提不到值,怎么回事哦?
-------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk2312" />
<title>php</title>
</head><body>
<center>User Register</center>
<fieldset>
<form method="post" action="post.php" name="f1">
<table border="0" cellspacing="4" cellpadding="0" align="center" width="200">
<tr>
<td align="right">user:</td>
<td><input type="text" name="user" id="user" size="12" /></td>
</tr>
<tr>
<td>password:</td>
<td><input type="password" name="psw" id="psw" size="12" /></td>
</tr>
<tr>
<td align="right">sex:</td>
<td><input type="radio" name="rdo" id="rdo" checked="checked" value="male" />male
<input type="radio" name="rdo" id="rdo" value="woman" />woman</td>
</tr>
<tr>
<td align="right">age:</td>
<td><input type="text" name="age" id="age" size="1" /></td>
</tr>
<tr>
<td valign="top" align="right">person:</td>
<td><textarea name="meum" id="meum" rows="15" cols="30"></textarea></td>
</tr>
<table align="center" width="200">
<tr>
<td><input type="submit" name="sub" id="sub" value="submit" /></td>
<td width="100"><input type="reset" id="rst" name="rst" value="reset" /></td>
</tr>
</table>
</table>
</form>
</fieldset>
</body>
</html>post.php
---------------------------------
<?php include "conn.php" ?>
<?php
echo "print: ".$_request['user']."<br>";
echo "print: ".$_request['psw']."<br>";
echo "print: ".$_request['age'];
?>提不到值,怎么回事哦?
解决方案 »
- PHP错误信息有中文的时候乱码(页面是utf-8)是什么原因?
- HTML中的<ol><li>标签复制时如何去掉序号
- 一个关于PHPMailer的问题。请各位大哥们帮忙解决下
- preg_match_all函数的问题,在线等
- PHP4+mysql+apache的配置问题?急...待...
- 如何找到耗费CPU资源的php程序?
- 时间格式如2005-12-11 怎么和数据库里的datetime格式比较?
- 关于 PHP 应用服务器的安全性问题,希望各位帮帮忙。
- #########用PHP开始你的MVC########(一)整合你的站点入口
- php文件把指定的额度(提成奖)换成百分比
- 用PHP怎么实现提取循环页面内容
- 用PHP怎么生成高质量的缩略图?
echo "print: ".$_POST['user']." <br>";
echo "print: ".$_POST['psw']." <br>";
echo "print: ".$_POST['age'];
?>