查看: 672|回复: 5
|
Form 的 enctype 疑问。。。
[复制链接]
|
|
Form 的 method 疑问。。。
我想问一些的 enctype 是什么意思???
<form enctype = "multipart/form-data" Action ="uploadresult.asp" Method = "POST">
因为我要upload file, 用到这个 enctype = "multipart/form-data"。。
但就不可pass别的value过去和 reques.form 了。。
如果我要 upload file 跟同时 pass 一些 value, 要如何做??? |
|
|
|
|
|
|
|
发表于 2-6-2006 07:48 PM
|
显示全部楼层
我不知道你的upload是怎样写的。。。。。
我的话啦,我也test过可以的。
在你开始save file的下面的code,也就是最后那排
加一个这个
...
...
record = 1
If record = 1 then
......(做你要做的东西)
End If
因为我是在同一个file.asp的
所以我的form是这样的
<form method=post ENCTYPE="multipart/form-data">
[ 本帖最后由 红发 于 2-6-2006 07:49 PM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 2-6-2006 10:39 PM
|
显示全部楼层
会有error..
Cannot use Request.Form collection after calling BinaryRead |
|
|
|
|
|
|
|
发表于 5-6-2006 01:40 AM
|
显示全部楼层
是可以的..
以前有做过,是用了别人写的class..
在网上找找,看看别人怎样做吧.. |
|
|
|
|
|
|
|
发表于 5-6-2006 09:15 AM
|
显示全部楼层
原帖由 eastken 于 2-6-2006 10:39 PM 发表
会有error..
Cannot use Request.Form collection after calling BinaryRead
可以看看你的code吗?
要不然,没有人知道你那里错了。 |
|
|
|
|
|
|
|

楼主 |
发表于 5-6-2006 11:18 AM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|