[求助]高手进来看看,我这代码哪里错了 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>意见反馈</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="menu.css" />
</head>
<body>
<div id="centrecontainer">
<div id="outercontainer">
<div id="header">
<div id="navcontainer">
<ul id="navlist">
<li><a href="english/orderrequest.php">English</a></li>
<li><a href="maintenance.php">网站维护</a></li>
<li><a href="contacts.php">联系我们</a></li>
<li><a href="exhibit.php">成功案例</a></li>
<li><a href="serviceintr.php">服务简介</a></li>
<li><a href="companyintr.php">公司简介</a></li>
<li><a href="index.php">首页</a></li>
</ul>
</div>
</div>
<div id="container">
<div id="containerleft1">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="350" height="350">
<param name="movie" value="img/bibo2.swf">
<param name="quality" value="high">
<embed src="img/bibo2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="350"></embed>
</object>
</div>
<div id="containerright">
<?php
if ( $REQUEST_METHOD == "POST" ) {
$realname = strip_tags($realname);
$email = strip_tags($email);
$feedback = strip_tags($feedback);
$sendto = "zjp19831102@163.com";
$subject = "意见反馈";
$message = "$realname, $email\n\n$feedback";
mail($sendto, $subject, $message);
}
?>
<?php
if ($REQUEST_METHOD=="POST") {
echo("<p><b>多谢您提供的宝贵建议:</b></p>\n");
echo("<blockquote><pre>\n");
echo("$message");
echo("</pre></blockquote>");
?>
<meta http-equiv="refresh" content="5">
<? }
else {
?>
<script language="javascript">
function DoSubmit ()
{
if (document.form.realname.value == "") {
alert ("请输入你的姓名.");
document.form.realname.focus ();
return "";
}
if (document.form.email.value == "") {
alert ("对不起,您忘记输入您的email,请重新输入.");
document.form.email.focus ();
return "";
}
if (document.form.reedback.value == "") {
alert ("对不起,您忘记输入您的建议,请重新输入.");
document.form.reedback.focus ();
return "";
}
document.form.submit ();
}
</script>
<form action="<?php echo("$script_name"); ?>" METHOD="POST" name="form">
<table cellpadding="4" cellspacing="0" border="0">
<tr><td><b>姓名: </b></td><td><input type="text" name="realname" size="25"></td></tr>
<tr><td><b>Email地址:</b></td><td><input type="text" name="email" size="25"></td></tr>
<tr><td colspan=2><b>内容:</b><br />
<textarea name="feedback" rows="12" cols="45" wrap="physical"></textarea>
</td></tr>
<tr><td colspan="2" align="center"><input type="submit" onclick="DoSubmit ()" value="发送"></td></tr>
</table>
</form>
<?php } ?>
</div>
</div>
<div align="center"><br>
                                                                                       Copyright © 2006 Bibo web
All Rights Reserved </div>
</div>
</div>
</body>
</html> |
|
|