<html>
....
<form name=....>
.....
<input name="r_name" type="text" id="r_name" size="30" maxlength="20" />
......
<input name="password" type="password" id="password" size="20" maxlength="20" />
...

解决方案 »

  1.   

    <html> 
    .... 
    <form name=.... method="post"> 
    ..... 
    <input name="r_name" type="text" id="r_name" size="30" maxlength="20"> 
    ...... 
    <input name="password" type="password" id="password" size="20" maxlength="20"> 
    ...
    你的表单没有采用post方法,请你在设置表单时在属性中设置方法为post,即method="post",试试看!我从来没出现过这种情况!
      

  2.   

    我也没出现过先搞清楚,数据提交过去,到底是get还是post方法
      

  3.   

    没遇到过遇到首先检查 method="post"
    然后再 print_r($_POST); 看结果。
      

  4.   

    你可以试试httpwatch这个监控的IE小工具,安装在IE上就可以了.
    从这上面可以看到POST数据有没有传到后台.
    或都是看看有没有定义form的method属性.
    <form action="" name="mypost" method="POST">
    ...
      

  5.   

    如果不想安装httpwatch就把POST的值全都打印出来看看,有没有传到后台.
      

  6.   

    谢谢大家的解答,问题已经解决了,我将session_start()放到最顶端后,数据都接收过来了,为什么是这样,我也不懂