⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guestbook.asp

📁 西亚电子购物系统
💻 ASP
字号:
<!--#include file="header.asp" -->
<%
'进行数据来源安全性监测,跨站脚本防范
	dim server_v1,server_v2
	server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
	server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
	if mid(server_v1,8,len(server_v2))<>server_v2 then
response.write "<script language=JavaScript>{window.alert('进行数据来源安全性监测,跨站脚本防范');window.history.go(-1);}</script>"
	response.end
end if
%>
<table width="778" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="185" height="350" valign="top" class="table-right"><!--#include file="left.asp" --></td>
    <td width="100%" height="350" align="center" valign="middle" bgcolor="#FFFFFF"> 
      <script language="javascript">
	<!--//
	function checksignup() {

		if ( document.sia_guestbook.name.value == '' ) {
			window.alert('请输入您的姓名!!');
			document.sia_guestbook.name.focus();
			return false;
			
		}
		if ( document.sia_guestbook.content.value == '' ) {
			window.alert('请输入留言反馈内容!!');
			document.sia_guestbook.content.focus();
			return false;
		}
                if ( document.sia_guestbook.email.value.length> 0 &&!document.sia_guestbook.email.value.indexOf("@")==-1|document.sia_guestbook.email.value.indexOf(".")==-1 ) {
			window.alert('请输入正确的Email地址!!');
			document.sia_guestbook.email.focus();
			return false;
		}
              if((document.sia_guestbook.tel.value!="")){if(isNaN(document.sia_guestbook.tel.value)||(document.sia_guestbook.tel.value.length<7)) {
		window.alert("请输入有效电话号码,只能是数字!!");
		document.sia_guestbook.tel.focus();
		return false;
	}
}
          if (document.sia_guestbook.content.value.length>800)
  {
  window.alert("留言反馈内容不能超过800字!!");
  document.sia_guestbook.content.focus();
  return false;
  }

			return true;
			}

	//-->
	</script> 
      <table width="400" border="0" align="center" cellpadding="2" bgcolor="#FFFFFF">
        <form ACTION="save.asp" METHOD="POST" NAME="sia_guestbook" id="sia_guestbook">
          <tr> 
            <td height="20" colspan="2" valign="middle" bgcolor="#CCCCCC">&nbsp;&nbsp;<font color="#000000">&gt;&gt;留言反馈</font>&nbsp;&nbsp;&nbsp;<font color="#000011">(您的意见和建议对我们很重要,谢谢您的支持!)</font></td>
          </tr>
          <tr bgcolor="#f7f7f7"> 
            <td width="100" height="25" align="center" valign="middle">您的姓名<font color="#ff3333">*</font></td>
            <td width="300" height="25" valign="top"> <INPUT name=name class=textbox onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size=25 maxlength="10"> 
            </td>
          </tr>
          <tr bgcolor="#f7f7f7"> 
            <td width="100" height="25" align="center" valign="middle">联系电话&nbsp; 
            </td>
            <td width="300" height="25" valign="top"> <INPUT name=tel class=textbox id="tel" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size=45 maxlength="25"></td>
          </tr>
          <tr bgcolor="#f7f7f7"> 
            <td width="100" height="25" align="center" valign="middle">电子信箱&nbsp;</td>
            <td width="300" height="25" valign="top"> <INPUT name=email class=textbox onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size=45 maxlength="49"></td>
          </tr>
          <tr bgcolor="#f7f7f7"> 
            <td width="100" height="25" align="center" valign="top"> <br>
              留言内容<font color="#ff3333">*</font></td>
            <td width="300" height="25" valign="top"> <textarea title="留言反馈的内容,每条不能超过800字。
如果您有多项问题要反馈,请分开提交。
谢谢您对我们的支持!" name="content" class="textbox" cols="44" rows="6" id="content"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></textarea></td>
          </tr>
          <tr bgcolor="#f7f7f7"> 
            <td width="100" height="25" align="center" valign="middle">&nbsp;</td>
            <td width="300" height="25" valign="middle"> &nbsp; <input name=submit type=submit class="textbox-1" id="submit" onClick="javascript:return checksignup()" value='提 交' onFocus="this.blur()"> 
              <input name="Reset" type="reset" class="textbox-1" id="Reset" value="重 写" onFocus="this.blur()"> 
            </td>
          </tr>
          <tr>
            <td height="50" align="center" valign="middle">&nbsp;</td>
            <td height="50" valign="middle">&nbsp;</td>
          </tr>
        </form>
      </table>
      
        
    </td>
  </tr>
</table>
<!--#include file="footer.asp"-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -