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

📄 add.asp

📁 该资料包含大量网络开发的案例和源代码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="code.asp"-->
<%
function htmlencode(str)
if request("special")="true" then
	htmlencode=replace(replace(str,chr(13),"<br>"),"'","’")
else
	htmlencode=server.htmlencode(str)
	htmlencode=replace(replace(htmlencode,chr(13),"<br>"),"'","’")
end if

end function

	dim rs,sql
	set rs=server.createobject("adodb.recordset")


%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>签写留言</title>
<link rel="stylesheet" type="text/css" href="3.css">


<script language="JavaScript">
<!--
function na_check_max_length(fname, type_name, str, maxlength)
{
  var maxlength;
  if (document.forms[fname].elements[type_name].value.length > maxlength) {
    alert(str);
  return false
  } 
}

function na_select_form (fname, type_name) 
{
  document.forms[fname].elements[type_name].select()
  document.forms[fname].elements[type_name].focus()
}

function na_form_clear(fname, type_name) 
{
  if (document.forms[fname].elements[type_name].value = document.forms[fname].elements[type_name].defaultValue) {
    document.forms[fname].elements[type_name].value = "";
  }
}

// -->
</script>
</head>

<body>
<form method="POST" name="myform" action="savetxt.asp?action=add">
  <div align="center"><center><table cellspacing="2" bgcolor=#f2f8ff onmouseover=javascript:this.bgColor='#e8f4ff' onmouseout=javascript:this.bgColor='#f2f8ff' align="center" width="70%" bordercolordark="white" bordercolorlight="#66CCFF" cellpadding="2">
    <tr align="center">
      <td width="99%" height="327">
	<table width="100%" cellpadding="1" cellspacing="1">
        <tr>
          <td width="336" height="76" align="center" bordercolor="#E5E5E5">
                                    <p align="left"><B>&nbsp;<font color="#3399FF">Name:<input type="text" name="name" size="22" value="" OnFocus="na_form_clear('myform', 'name');" style="background-color:aliceblue; border-width:1px; border-bottom-color:rgb(102,153,255); border-top-style:none; border-right-style:none; border-bottom-style:solid; border-left-style:none;"><br> 
                                    &nbsp;Mail:<input type="text" name="email" value="@eamil.com" size="24" OnFocus="na_form_clear('myform', 'email');" style="background-color:aliceblue; border-width:1px; border-bottom-color:rgb(112,160,255); border-top-style:none; border-right-style:none; border-bottom-style:solid; border-left-style:none;"> <br> 
                                    &nbsp;OICQ:<input type="text" name="qq" size="28" OnFocus="na_form_clear('myform', 'qq');" style="background-color:aliceblue; border-width:1px; border-bottom-color:rgb(112,160,255); border-top-style:none; border-right-style:none; border-bottom-style:solid; border-left-style:none;"><br>
                                    &nbsp;Home:<input type="text" name="homepage" value="http://" size="32" style="background-color:aliceblue; border-width:1px; border-bottom-color:rgb(112,160,255); border-top-style:none; border-right-style:none; border-bottom-style:solid; border-left-style:none;"></font></b> 
                                     
                                    </td>
          <td width="189" height="76" align="center" bordercolor="#E5E5E5">
<table width="170" border="0" cellspacing="0" cellpadding="4">
          <tr> 
            <td width="46" height="24"> 
              <input type="radio" value="images/icon6.gif" name="T_Emot" checked>
              <img src="images/icon6.gif" align="absmiddle" height="17" width="17"></td>
            <td width="48" height="24"> 
              <input type="radio" value="images/icon3.gif" name="T_Emot">
              <img src="images/icon3.gif" align="absmiddle" WIDTH="17" HEIGHT="17"></td>
            <td width="52" height="24"> 
              
              <input type="radio" value="images/icon8.gif" name="T_Emot">
              <img src="images/icon8.gif" align="absmiddle" WIDTH="17" HEIGHT="17"></td>
          </tr>
          <tr> 
            <td width="46"> 
              <input type="radio" value="images/icon7.gif" name="T_Emot">
              <img src="images/icon7.gif" align="absmiddle" WIDTH="17" HEIGHT="17"></td>
            <td width="48"> 
              <input type="radio" value="images/icon10.gif" name="T_Emot">
              <img src="images/icon10.gif" align="absmiddle" WIDTH="17" HEIGHT="17"></td>
            <td width="52"> 
              <input type="radio" value="images/icon11.gif" name="T_Emot">
              <img src="images/icon11.gif" align="absmiddle" WIDTH="17" HEIGHT="17"></td>
          </tr>
        </table>
 
 
                                     
                                    </td>
        </tr>
        <tr>
          <td width="528" align="center" bordercolor="#E5E5E5" height="41" colspan="2">            <p><input type="radio" name="head" value="face/1.gif" checked><img src="face/1.gif" width="50" height="50" border="0"><input type="radio" name="head" value="face/2.gif"><img src="face/2.gif" width="50" height="50" border="0"><input type="radio" name="head" value="face/4.gif"><img src="face/4.gif" width="50" height="50" border="0"><input type="radio" name="head" value="face/3.gif"><img src="face/3.gif" width="50" height="50" border="0"><input type="radio" name="head" value="face/6.gif"><img src="face/6.gif" width="50" height="50" border="0"><input type="radio" name="head" value="face/7.gif"><img src="face/7.gif" width="50" height="50" border="0"></p>
</td>
        </tr>
        <tr>
          <td width="528" align="center" bordercolor="#E5E5E5" height="131" colspan="2"><textarea rows="7" name="content" cols="68" OnFocus="na_select_form('myform', 'content');" style="font-family:宋体; font-size:12px; border-width:1px; border-color:rgb(102,153,255); border-style:solid;"></textarea><p align="right"><input type="submit" value="添加"
  name="cmdok" OnFocus="na_check_max_length('myform', 'content', '对不起,留言内容不能起过100字请简化你的留言内容:)', 200);" style="background-color:aliceblue; border-width:1px; border-color:rgb(102,153,255); border-style:solid;">&nbsp;<input type="reset" value="清除"
  name="cmdcancel" style="background-color:aliceblue; border-width:1px; border-color:rgb(102,153,255); border-style:solid;"> <input type="button" name="注册" value="返回" type=button name=moreannounce value="返回" onclick=javascript:window.open('javascript:history.back(1)','_top','') class="input1"> 
                                    <input type="button" name="注册" class="input1"> </p>
</td>
        </tr>
      </table>
      </td>
    </tr>
  </table>
  </center></div>
</form>
</body>
</html>

⌨️ 快捷键说明

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