<?php
require ("ubb.php");
if(isset($name)&&$name!=""){
echo "isset name";
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$homepage=$_REQUEST['homepage'];
$qq=$_REQUEST['qq'];
$brow=$_REQUEST['brow'];
$face=$_REQUEST['user_face'];
$topic=$_REQUEST['topic'];
$content=$_REQUEST['content'];
$content = ubb2html($content);
echo "before getenv";
$ip = getenv ("REMOTE_ADDR"); 
echo "after getenv";
if ($homepage=="http://"){
$homepage="http://localhost";
}
if ($qq==""){
$qq="没有QQ";
}
if ($email==""){
$email="没有信箱";
}
echo "before connection";//连接数据库
require ("config/conn_Gbook.php");
echo "ok";
echo "$conn_id";
$query=mssql_query("INSERT INTO Gbook (L_Name,L_Email,L_HomePage,L_qq,L_Brow,L_Shadow,L_Topic,L_Center,L_Ip) VALUES ('$name','$email','$homepage','$qq','$brow','$face','$topic','$content','$ip')",$conn_id);
session_start();
if (!session_is_registered("UserName"))
{
header ("location:index.php");
}else{
header("location:admin/admin_index.php");
}
}
?>
<script language="JavaScript">
<!--
image1= new Image();
function imgchange(){
var imageNum =  document.form1.user_face.selectedIndex + 1;
fname = eval("image" + imageNum + ".src")
document.img.src = fname
}
//-->
</script>
<script language="vbscript">
function form1_onsubmit()
if document.form1.name.value="" then
alert"昵称不能为空!"
document.form1.name.focus
form1_onsubmit=false
exit function
else
form1_onsubmit=true
end if
if document.form1.topic.value="" then
alert"请输入留言主题!"
document.form1.topic.focus
form1_onsubmit=false
exit function
else
form1_onsubmit=true
end if
if document.form1.content.value="" then
alert"请输入留言内容!"
document.form1.content.focus
form1_onsubmit=false
exit function
else
form1_onsubmit=true
end if
end function
</script><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>签写留言</title>
<link href="linglan.css" rel="stylesheet" type="text/css">
<style type="text/css"></style></head>
<body>
<SCRIPT src="img/ubb/ubbcode.js"></SCRIPT>
<style type="text/css"></style><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" background="img/top_r1_c2.jpg">
  <tr>
    <td width="16%"><img src="img/top_r1_c1.jpg" width="129" height="75"></td>
    <td width="60%">&nbsp;</td>
    <td width="24%"><img src="img/top11.jpg" width="194" height="75" border="0" usemap="#Map"></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="98,51,140,71" href="add.php" alt="签写留言">
  <area shape="rect" coords="141,51,188,71" href="Admin/login.php" alt="管理留言">
  <area shape="rect" coords="48,52,97,70" href="javascript:history.go(-1)" alt="留言本首页">
  <area shape="rect" coords="2,51,47,70" href="http://localhost" alt="本站首页">
</map>
<table width="770"  border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="add.php">
<tr>
                        <td background="img/sxzy_r2_c1.jpg">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="14%"><span class="linglan">主题*</span></td>
                            <td width="86%"><div align="left">
                                <input name="topic" type="text" class="topic" id="topic8" size="22" maxlength="15">
                            </div></td>
                          </tr>
                          <tr class="linglan">
                            <td valign="middle">UBB标签</td>
                            <td>
                              <div align="left"><IMG 
                          </tr>
                          <tr>
                            <td valign="top"><span class="linglan">回复留言*</span></td>
 
          </tr>
          <tr>
            <td colspan="2"><br>
              <br>
              <table width="23%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><div align="center"><span class="linglan">
                    <input name="Submit" type="submit" class="bnn" id="Submit" value="发 送">
                  </span></div></td>
                  <td><div align="center"><input name="Submit2" type="reset" class="bnn" id="Submit2" value="重 写">
                  </div></td>
                  <td><div align="center">
                    <input name="Submit22" type="button" class="bnn" onClick="history.go(-1)" value="返回">
                  </div></td>
                </tr>
              </table>
              <br></td>
          </tr>
      </table></td></tr>
    <tr>
      <td><img src="img/bj_r3_c1.gif" width="770" height="16"></td>
    </tr>
</form>
</table>
</body><?php
include ('copyright.htm');
?>
</html>==============================================================================================
我按“发送”按钮后,依旧显示add.php这个网页,但是什么东西也没有得到。也就是说没有得到name等信息。
请问哪里不对了?(中间有些不重要的代码省略)