📄 photoup.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片上传</title>
<Script language="JavaScript">
<!--
function Check(form)
{
if (document.photo.Photo.value=="")
{
alert("请单击[浏览...]按钮,选择您要上传的jpg或gif文件!");
PicForm.Photo.focus;
return(false);
}
else
{
str=photo.Photo.value;
strs=str.toLowerCase();
lens=strs.length;
extname=strs.substring(lens-4,lens);
if(extname!=".jpg"&&extname!=".gif")
{
alert("请选择jpg或gif文件!");
return(false);
}
}
if (document.TextForm.phototext.value=="")
{
alert("请输入图片说明!");
TextForm.PhoText.focus;
return(false);
}
TextForm.submit();
photo.submit();
return true;
}
-->
</Script>
</head>
<body background="images/bback.gif">
<p align="center"><font size="+2" color="#3399FF"><strong>上传照片</strong></font></p>
<table border="1" width="80%" cellspacing="0" cellpadding="0" align="center">
<form name="TextForm" action="photoupsave.asp" method="post">
<tr>
<td width="276" height="29"><div align="center"><font color="#000000">描述:</font></div>
</td>
<td width="699"><font color="#000000">
<input name="phototext" type="text" size="40" height="20">
</font></td>
</tr></form>
<form name="photo" enctype="multipart/form-data" action="photosave.asp" method="post">
<tr>
<td width="276" height="33"><p align="center">照片:</td>
<td width="699">
<input type="file" name="Photo" size="40" height="20"></td>
</tr>
</form>
<tr><td colspan="2"> <div align="center">
<input type="Button" value=" 上传 " onclick="JavaScript:Check();">
</div></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -