📄 upload.htm
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>发送图片</title>
<script language="JavaScript">
function checkData(){
if(document.pictureForm.picTitle.value==""){
alert("请输入图片标题");
document.pictureForm.picTitle.focus();
return false;
}
if(document.pictureForm.picFile.value==""){
alert("请选择图片文件");
document.pictureForm.picFile.focus();
return false;
}
}
</script>
</head>
<body>
<form method="POST" action="sendPic.jsp" enctype="multipart/form-data" name="pictureForm" onsubmit="return checkData();">
<div align="center">
<center>
<table border="0" width="448" height="266">
<tr>
<td width="448" height="19" align="center" colspan="2" bgcolor="#FFECD9"><font face="仿宋_GB2312" color="#FF00FF">图片上传</font></td>
</tr>
</center>
<tr>
<td width="93" height="27" align="center" bgcolor="#D0FFFF">
<p align="left"><font face="仿宋_GB2312"> 图片标题:</font></td>
<td width="339" height="27" align="center" bgcolor="#D0FFFF"><input type="text" name="picTitle" size="43"></td>
</tr>
<center>
<tr>
<td width="95" height="121" bgcolor="#D0FFFF"><font face="仿宋_GB2312"> 图片说明:</font></td>
<td width="337" height="121" bgcolor="#D0FFFF">
<p align="center"><textarea rows="5" name="picInfo" cols="41"></textarea></td>
</tr>
<tr>
<td width="92" height="37" bgcolor="#D0FFFF"><font face="仿宋_GB2312"> 图片文件:</font></td>
<td width="340" height="37" bgcolor="#D0FFFF">
<p align="center"><input type="file" name="picFile" size="33"></td>
</tr>
<tr>
<td width="448" height="37" colspan="2" bgcolor="#D0FFFF">
<p align="center"><input type="submit" value="发 送" name="send">
<input type="reset" value="Reset" name="B2"></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -