<?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>像这种 我应该如果获取数据,谢谢

解决方案 »

  1.   


    //try it like thisprint_r($_POST);
      

  2.   

    dw_name$name=$_REQUEST['dw_name'];名字中的“.”会被 php 变成 “_”
      

  3.   

    Macromedia Dreamweaver....你 可以print_r($_REQUEST); 
    看看内容就知道如何接收老.
      

  4.   

    <?php
    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>
    这样写就出现了 问题解决了  谢谢