| 发表于:2008-01-06 13:26:38 楼主 |
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的值是不是为空,如果不为空了,就提示已上传了图片。 ------希望有人帮我解决问题,先谢谢各位来回答的人————— 问题补充:这个程序是错的,了解的人帮忙修改一下,或是有更好的办法,只要能实现此功能就可以。 |
|
|
|
|