当前位置:首页 » 多媒体相关

分可再加!<input type=text><input type=file><input type=text><input type=file><input type=text>...


<input   type=text><input   type=file><input   type=text><input   type=file><input   type=text>...  
  像这样的情况我如何提取里面的各种信息?

推荐阅读

  • Bjarne:为什么一个空类的大小不为0? [详细内容]
  • 受在线广告增长推动 Google股价创下新记录 [详细内容]
  • 窄告网杀入网络广告市场 推按点击收费模式 [详细内容]
  • Bjarne:我如何写这个非常简单的程序? [详细内容]
  • ET960的个人摄像技巧 [详细内容]
  • 病毒警报:Bofra蠕虫病毒借标语式广告肆虐 [详细内容]
  • JAR文件包及jar命令详解 [详细内容]
  • 网友回答:
    网友:snowcloud2002

    在页面传递参数啊,然后在处理页面根据参数不同调用不同的上传处理程序吧,个人是这么理解  
      如:  
      post.asp  
      =======================================  
      <form   action="upload.asp"   method="post">  
      <input   name="imgs"   type="file">  
      <input   name="files"   type="text">  
      <input   type="checkbox"   name="myimg"   checked>上传图片  
      <input   type="checkbox"   name="myfile">上传文件  
      <input   type="submit">  
      ========================================  
       
      upload.asp  
      ========================================  
      <%    
      img=request.form("imgs")  
      file=request.form("files")  
      uploadimg=request.form("myimg")  
      uploadfile=request.form("myfile")  
      if   uploadimg=1   then  
      上传图片代码  
      elseif   uploadfiel=1   then  
      上传文件代码  
      else  
      response.write   "您没有选择上传类型"  
      response.write   "<script>history.back();</script>"  
      response.end  
      end   if  
      %>  
      不知道可以不

    网友:zorou_fatal

    request.form  
      是读不了file类型的信息的。

    网友:snowcloud2002

    不好意思,我写错了啊,我的意思是你可以根据传递不同的参数进行判断,然后调用不同的上传处理程序啊

    .

    讨论区

    Login