<?php$name=$_REQUEST['dw.name'];
if($name!=''){
echo $name;
}?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
测试form表单
</title>
</head>
<body>
<form method="post" action="/test1/index.php" enctype="multipart/form-data">
姓名:<input name="dw.name" type="text">
<button type="submit">保存</button></form>
</body>
</html>像这种 我应该如果获取数据,谢谢
if($name!=''){
echo $name;
}?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
测试form表单
</title>
</head>
<body>
<form method="post" action="/test1/index.php" enctype="multipart/form-data">
姓名:<input name="dw.name" type="text">
<button type="submit">保存</button></form>
</body>
</html>像这种 我应该如果获取数据,谢谢
//try it like thisprint_r($_POST);
看看内容就知道如何接收老.
if($_POST["dw_name"]!=''){
echo $_POST["dw_name"];
}?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
测试form表单
</title>
</head>
<body>
<form method="post" action="/test1/index.php" enctype="multipart/form-data">
姓名:<input name="dw.name" type="text">
<button type="submit">保存</button></form>
</body>
</html>
这样写就出现了 问题解决了 谢谢