📄 guestbook.asp
字号:
<!-- #include file="conn.asp" -->
<!--#include file="webconfig.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%></title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="include/top.asp" -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="1" bgcolor="#cccccc"></td>
<td width="220" height="100"><!-- #include file="include/left.asp" --></td>
<td width="1" bgcolor="cccccc"></td>
<td align="center">
<!--#include file="include/search.asp" -->
<table width="98%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="center"><b><font color="#006699">客户留言系统</font></b></td>
</tr>
<tr>
<td align="right"><b><img src="../images/guestbook11.gif" width="20" height="16" align="absmiddle">
<a href="guestbook.asp" class="lefttitle">我要留言</a> <img src="../images/Arrow.gif" width="12" height="12" align="absmiddle">
<a href="guestbooklist.asp" class="lefttitle">查看留言</a></b></td>
</tr>
<tr>
<td align="right"> </td>
</tr>
</table>
<table bgcolor=#ffffff border=1 bordercolor=#cccccc cellpadding=5
cellspacing=5 class=head height=158 width="98%" align="center">
<tbody>
<tr>
<td valign="top"> <table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="2" bgcolor="EAF5FB">你好!请填写下面各项!
<script language="javascript">
<!--
function chechform()
{
if(form1.title.value==""){form1.title.focus();
alert("留言标题不能为空!");
return false;
}
if(form1.guestname.value==""){form1.guestname.focus();
alert("姓名不能为空!");
return false;
}
if (form1.email.value.length<5|form1.email.value.indexOf("@")==-1|form1.email.value.indexOf(".")==-1)
{alert("请输入正确的电子邮件地址!你填写的邮箱是保密的,不会显示出来");
form1.email.focus();
return false;
}
if(form1.content.value==""){form1.content.focus();
alert("留言内容不能为空!");
return false;
}
}
//-->
</script> </td>
</tr>
<form action="guestok.asp" name="form1" method="post" onSubmit="return chechform()">
<tr>
<td width="13%" bgcolor="EAF5FB"><font color="#0099cc">留言标题:</font></td>
<td width="84%"> <input type="text" name="title" size="55" class="input_cccccc">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td width="13%" height="17" bgcolor="EAF5FB"><font color="#0099cc">你的姓名:</font></td>
<td width="84%" height="17"> <input type="text" name="guestname" size="55" class="input_cccccc">
<font color="#FF0000">*</font> </td>
</tr>
<tr>
<td width="13%" bgcolor="EAF5FB"><font color="#0099cc">通信地址:</font></td>
<td width="84%"> <input type="text" name="address" size="55" class="input_cccccc">
<font color="#999999">(隐藏)</font> </td>
</tr>
<tr>
<td width="13%" bgcolor="EAF5FB"><font color="#0099cc">电 话:
</font></td>
<td width="84%"> <input name="tel" type="text" class="input_cccccc" size="18">
<font color="#999999">(隐藏)</font> <font color="#FF99CC"> <font color="#0099cc">传 真:</font></font>
<input name="fax" type="text" class="input_cccccc" size="18">
<font color="#999999">(隐藏)</font> </td>
</tr>
<tr>
<td width="13%" bgcolor="EAF5FB"><font color="#0099cc">电子邮件:</font></td>
<td width="84%"> <input name="email" type="text" class="input_cccccc" size="18">
<font color="#999999">(隐藏)</font> <font color="#FF99CC"> <font color="#0099cc">网 址:</font></font>
<input name="url" type="text" class="input_cccccc" size="18">
<font color="#999999">(隐藏)</font> </td>
</tr>
<tr>
<td width="13%" bgcolor="EAF5FB"><font color="#0099cc">QQ号 码:</font></td>
<td width="84%"> <input name="qq" type="text" class="input_cccccc" size="18">
<font color="#999999">(隐藏)</font> <font color="#FF99CC"> <font color="#0099cc">悄悄话:</font></font>
<input name="hideyn" type="radio" class="inputmain1" value="y">
是
<input name="hideyn" type="radio" class="inputmain1" value="n" checked>
否</td>
</tr>
<tr>
<td bgcolor="EAF5FB"><font color="#0099cc">留言内容:</font></td>
<td bgcolor="#FFFFFF"> <textarea name="content" cols="58" rows="6" class="input_cccccc"></textarea>
<font color="#FF0000">*</font> </td>
</tr>
<tr align="center">
<td colspan="2"> <input type="hidden" name="flag" value="guest">
<input id=Submit1 name=Submit22 type=submit value=我要留言 class="sinput">
<input id=Submit22 name=Submit22 type=reset value=重新填写 class="sinput">
</td>
</tr>
</form>
</table></td>
</tr>
</tbody>
</table> </td>
<td width="1" bgcolor="cccccc"></td>
</tr>
</table>
<!-- #include file="include/bottom.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -