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

📄 upphoto.asp

📁 一个很好的班级同学录
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../public/conn.asp" -->
<%
if not session("quanxian")="master" then
   response.Redirect "index.asp"
end if
%>
<script language="JavaScript">
<!--
function VerifyInput()
{
    phototitle = document.form2.phototitle.value;
    if (phototitle == "")
    {
        alert("请填写照片的标题");
        document.form2.phototitle.focus();
        return false;
    }
	
	photopath = document.form2.photopath.value;
    if (photopath == "")
    {
        alert("请选择照片的路径");
        document.form2.photopath.focus();
        return false;
    }
	
	photointro = document.form2.photointro.value;
    if (photointro == "")
    {
        alert("请填写照片简介");
        document.form2.photopath.focus();
        return false;
    }

    if  (photointro.length>210) 
	{
	    alert("照片简介不能大于210字");
    	document.form2.photointro.focus();
	    return false;
	}
}
//-->
</script>
<!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 href="../mycss.css" rel="stylesheet" type="text/css">
</head>

<body>
<!--#include file="../public/top.asp" -->
<table width="760" border="1" align="center" cellpadding="5" cellspacing="1">
  <tr>
    <td class="font9Black"><h3 align="center">上传照片</h3>
      <form action="upload.asp" method="post" enctype="multipart/form-data" name="form2" id="form2" onsubmit="return VerifyInput();">
        <table width="70%" border="0" align="center" cellpadding="5" cellspacing="1" class="font9Black">
          <tr>
            <td width="78">照片标题:</td>
            <td width="420"><input name="phototitle" type="text"height="20" id="phototitle"></td>
          </tr>
          <tr>
            <td>照片路径:</td>
            <td><input name="photopath" type="file" height="20"id="photopath">
            </td>
          </tr>
          <tr>
            <td height="60">照片说明:</td>
            <td><textarea name="photointro" cols="40" rows="8" id="photointro"></textarea></td>
          </tr>
          <tr>
            <td colspan="2"><div align="center">
                <input type="submit" name="Submit2" value="提交">
                <input type="reset" name="Submit2" value="重置">
            </div></td>
          </tr>
        </table>
      </form>
      <p align="center">&nbsp;</p></td>
  </tr>
</table>
<!--#include file="../public/bottom.asp" -->
</body>
</html>

⌨️ 快捷键说明

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