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

📄 write.asp

📁 用JAVA编写的网络留言簿。前台功能 一、用户注册/注册资料修改。 二、签写留言
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#Include file="const.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>签写留言-<%=webname%></title>
<link href="css.css" rel="stylesheet" type="text/css">
<script language=javascript>
function check1()
{
  if(document.form1.username.value=="")
    {
	  alert("姓名要填写哟!");
	  return false;
	 }
  if(document.form1.content.value=="")
    {
	  alert("不想留言的话就返回吧!");
	  return false;
	 }
}
</script>
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="<%=bgcolor%>" text="#000000" leftmargin="0" topmargin="1" onload="window.setTimeout('statusScroll()', 500)">
  <SCRIPT LANGUAGE=JAVASCRIPT>
var msg = "<%=webname%>留言板"
var speed = 300; 
var msgud = " " + msg; 
function statusScroll() { 
if (msgud.length <msg.length) msgud += " - " + msg; 
msgud = msgud.substring(1, msgud.length); 
window.status = msgud.substring(0, msg.length);
window.setTimeout("statusScroll()", speed); 
} 
</SCRIPT>
<!--#include file="top.asp"-->
<table width="680" height="234" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="<%=tabbgcolor%>">
  <tr>
    <td height="160" width="100%" rowspan="3" bgcolor="<%=tdbgcolor%>" align="center" valign="middle"> 
<form name="form1" method="post" action="edit.asp" onsubmit="javascript:return check1();">
      <table width="100%" border="0" cellspacing="1" bgcolor="<%=tabbgcolor%>">
        <tr>
          <td bgcolor="<%=td1bgcolor%>">
<%
	dim userip,userip2
	userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
	userip2 = Request.ServerVariables("REMOTE_ADDR")
	if userip = ""  then
		response.write "您的真实IP是:"&userip2&""
		ip=userip2
	else
		response.write "您的真实IP是:"&userip&""
		ip=userip
	end if
%>
              <input name="ip" type="hidden" id="ip" value="<%=ip%>"></td>
        </tr>
      </table>
        <table width="100%" border="0" cellspacing="1" bgcolor="<%=tabbgcolor%>">
          <tr> 
            <td bgcolor="<%=tdbgcolor%>">      <img src="images/MOOD1.GIF" width="15" height="15" align="absmiddle">姓名 
              <input name="username" type="text" id="username" value="<%=session("username")%>" size="12">
              <span class="red"> **</span><br> <br>
                   <img src="images/dc.gif" width="16" height="16" align="absmiddle">地址 
              <input name="from" type="text" id="from" value="<%=session("from")%>" size="20"> <br> <br>
                   <img src="images/sex.gif" width="21" height="18" align="absmiddle">性别:&nbsp; 
              <%if session("sex")<>"" then
			  if session("sex")=1 then%>
			  <input type="radio" name="sex" value="1" checked>男&nbsp;&nbsp;
			  <input type="radio" name="sex" value="2">
               <%elseif session("sex")=2 then%>
			  <input type="radio" name="sex" value="1">男&nbsp;&nbsp;
			  <input type="radio" name="sex" value="2" checked>
              女<%end if
			  else%>
			  <input type="radio" name="sex" value="1">
              男&nbsp;&nbsp; <input type="radio" name="sex" value="2">
              女<%end if%><br> <br>
                   <img src="images/oicq.gif" width="16" height="16">OICQ : 
              <input name="qq" type="text" id="qq" value="<%=session("qq")%>" size="10"> <br> <br>
                   <img src="images/email.gif" width="45" height="18" align="absbottom"> 
              <input name="email" type="text" id="email" value="<%=session("email")%>" size="20"> <br> <br>
                   <img src="images/homepage.gif" width="47" height="18" align="absbottom"> 
              <input name="homepage" type="text" id="homepage" value="<%=session("homepage")%>" size="20"> <br><br>
                   <img src="images/phone1.GIF" width="16" height="16">电话 : 
              <input name="phone" type="text" id="phone" value="<%=session("phone")%>" size="15">
              <br><br></td>
            <td width="50%" valign="top" bgcolor="<%=tdbgcolor%>"> <div align="center"> 
                <table width="100%" border="0">
                  <tr> 
                    <td width="77%"><div align="center"> <img src="images/message.gif" width="60" height="18" align="absbottom"> 
                        <input name="one" type="checkbox" id="one" value="1">
                      </div></td>
                    <td width="23%"><div align="center" class="red">支持BB码</div></td>
                  </tr>
                </table>
                &nbsp;
                <textarea name="content" cols="40" rows="15" wrap="VIRTUAL" id="content"></textarea>
                <span class="red"> **</span></div></td>
          </tr>
        </table><br><%for i=1 to 60
		if session("bzface")="face/image"&i&".gif" then%>
		<input name="face" type="radio" value="face/image<%=i%>.gif" checked>
        <img src="face/Image<%=i%>.gif" width="30" height="30" align="absmiddle"> 
		<%else%>
        <input type="radio" name="face" value="face/image<%=i%>.gif">
        <img src="face/Image<%=i%>.gif" width="30" height="30" align="absmiddle"> 
        <%end if
		if i mod 10=0 then%>
        <br>
        <%end if%>
		<%next%><br>
        <input type="submit" name="Submit" value="发 言">
          
        <input name="Submit2" type="button" id="Submit" value="返 回" onClick="javascript:history.go(-1);">
      </form>
    </td>
  </tr>
</table>
<table width="680" border="0" align="center" cellspacing="1" bgcolor="<%=tabbgcolor%>">
  <tr>
            
          <td bgcolor="<%=td1bgcolor%>">
            <!--#Include file="buttom.asp"-->
          </td>
          </tr>
</table><br>
</body>
</html>

⌨️ 快捷键说明

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