你的add.php没有用$HTTP_POST_VARS或$HTTP_GET_VARS数组接受数据

解决方案 »

  1.   

    不知道你出错的结果,很有可能是你的php没有设置自动转换成为变量,所以你可以使用
    $HTTP_POST_VARS[name]来试试可否看到传过来的数值
      

  2.   

    多谢各位!我用了下面的数组搞定了:$arr_request=array();
    if(count($HTTP_GET_VARS)){
        while(list($key,$value)=each($HTTP_GET_VARS)){
    $arr_request[strtolower($key)]=$value;
    }
    }if(count($HTTP_POST_VARS)){
        while(list($key,$value)=each($HTTP_POST_VARS)){
    $arr_request[strtolower($key)]=$value;
    }
    }
    $name=$arr_request['name'];
    $email=$arr_request['email'];
    $message=$arr_request['message'];
      

  3.   

    我测试过,可以传递参数,只是会有运行警告,那只是我的机器没装MYSQL而已...