uppics.asp
<%
dim id
id=request("id")
document.form1.file.value=id'文本域可以给他它一值吗,我有另一张页面通过判断value有没有值,来判断是否上传图片了
if document.form1.file.value="" then
response.write("<script>alert('还没上传图片')</script>")
else
response.write("<script>alert('已上传图片')</script>")
end if
%>
<html>
<head><title>test</title></head>
<body>
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="check.asp">
<label></label>
<label>
<input type="file" name="file" />
</label>
<input type="submit" name="Submit" value="提交" />
</form>
</body>
</html>
--------------------
check.asp
<html>
<head>
<title></title>
</head>
<body>
<script>
alert('check完毕');window.location='uppics.asp?id=1'
</script>
</body>
</html>
---------------
我想实现的是:在uppics上传图片点提示时,转到check.asp去核实(我省略了check的代码),核实正确后加了一个ID=1传给uppics.asp,uppics.asp把获取到的ID传给file.value,然后再判断file.value的值是不是为空,如果不为空了,就提示已上传了图片。
------希望有人帮我解决问题,先谢谢各位来回答的人—————
问题补充:这个程序是错的,了解的人帮忙修改一下,或是有更好的办法,只要能实现此功能就可以。
<%
dim id
id=request("id")
document.form1.file.value=id'文本域可以给他它一值吗,我有另一张页面通过判断value有没有值,来判断是否上传图片了
if document.form1.file.value="" then
response.write("<script>alert('还没上传图片')</script>")
else
response.write("<script>alert('已上传图片')</script>")
end if
%>
<html>
<head><title>test</title></head>
<body>
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="check.asp">
<label></label>
<label>
<input type="file" name="file" />
</label>
<input type="submit" name="Submit" value="提交" />
</form>
</body>
</html>
--------------------
check.asp
<html>
<head>
<title></title>
</head>
<body>
<script>
alert('check完毕');window.location='uppics.asp?id=1'
</script>
</body>
</html>
---------------
我想实现的是:在uppics上传图片点提示时,转到check.asp去核实(我省略了check的代码),核实正确后加了一个ID=1传给uppics.asp,uppics.asp把获取到的ID传给file.value,然后再判断file.value的值是不是为空,如果不为空了,就提示已上传了图片。
------希望有人帮我解决问题,先谢谢各位来回答的人—————
问题补充:这个程序是错的,了解的人帮忙修改一下,或是有更好的办法,只要能实现此功能就可以。
解决方案 »
- 是关于excel的使用技巧,使某一单元格A3上的值(此数值是由公式算出)最小为3,当另外一个单元格B5的值>=80的时候,请将A3最小值变为4,还有。。。
- 怎样通过INI与数据库连接!
- 请问如何将一段字符串转化为可执行的代码,多谢!
- 是不是学了vb就学了vbscript啊?
- 本人对VBA是新手,谁能给个例子,用键盘控制powerpoint的播放顺序,多谢
- 调用做好的Excel,怎么让他不保存,而是另存为?
- 我有汉字拼音对应的Access数据库,谁要啊!!
- 怎样才能获得本地网上的用户名,组,或计算机名。
- 请高手指点一个二进制问题
- 怎样用程序清空回收站?
- 请问编程中出现 Dim f1 As StdDataFormat 中定义类型未定义 怎么修改
- vba中怎么把鼠标设成忙碌的状态
<head> <title> test </title> </head>
<body>
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="check.asp">
<label> </label>
<label>
<input type="file" name="file" />
</label>
<input type="submit" name="Submit" value="提交" />
</form>
<%
dim id
id=request("id")
'document.form1.file.value=id'文本域可以给他它一值吗,我有另一张页面通过判断value有没有值,来判断是否上传图片了
'if document.form1.file.value="" then
if id<>"1" then
response.write(" <script> alert('还没上传图片') </script> ")
else
response.write(" <script> alert('已上传图片') </script> ")
end if
%>
</body>
</html> check.asp中<%@LANGUAGE="VBSCRIPT"%>
<% response.redirect "uppics.asp?id=1" %>
<head> <title> test </title> </head>
<body>
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="check.asp">
<label> </label> <label>
<%
dim id
id=request("id")
'document.form1.file.value=id'文本域可以给他它一值吗,我有另一张页面通过判断value有没有值,来判断是否上传图片了
'if document.form1.file.value="" then
if id<>"1" then
response.write("<input type="file" name="file" value=0 />")
response.write(" <script> alert('还没上传图片') </script> ")
else
response.write("<input type="file" name="file" value=1 />")
response.write(" <script> alert('已上传图片') </script> ")
end if
%>
</label>
<input type="submit" name="Submit" value="提交" />
</form>
</body>
</html>