當前位置:編程學習大全網 - 源碼下載 - 那位大哥肯幫個忙啊,asp無組件上傳圖片代碼,要把圖片名和圖片的介紹寫到數據庫裏

那位大哥肯幫個忙啊,asp無組件上傳圖片代碼,要把圖片名和圖片的介紹寫到數據庫裏

上傳分為幾個頁面來的,所以妳最好看完我寫給妳的東東,,妳要仔細看...

這樣妳最好是加我百度HI,我用HI傳給妳,就兩個文件.在這裏說壹大通,妳可能還是不會明白...

這是上傳第壹個頁面

<tr align="center" valign="middle">

<td height="56" align="left" id="upid"> 上傳課程: </td>

<td height="56" align="left" id="upid"><input type="text" name="zuoyeup">

<a href="#" onClick="window.open('upfile.htm','go','scrollbars=no,resizable=no,width=480,height=25,left=50,top=0,screenX=50,screenY=50')">點擊上傳 </a><span class="STYLE2">(允許格式為avi|wmv|mov|rm|rmvb|wma</span><span class="STYLE3">)</span></td>

</tr>

妳看到那個NAME沒?妳在寫入數據時,就把它寫進去就可以了,妳點那個點擊上傳,就會另外彈出壹個小窗口頁面,那個頁面名就叫upfile.htm,這壹段妳可以加到妳想要加的地方

第二個頁面:彈出小窗口進行上傳的頁面,也就是upfile.htm頁面

<form name="form1" method="post" action="upfile_flash.asp?id=id" enctype="multipart/form-data" >

<input type="hidden" name="act" value="upload">

<table width="324" border="0" cellspacing="0" cellpadding="5" align="center" >

<tr align="center" valign="middle">

<td width="314" height="60" align="left" id="upid"> <input type="file" name="file1" style="width:200px;" class="tx1" value="">

<input type="submit" name="Submit" value="提交" class="bt">

<input type="reset" name="Submit2" value="重執" class="bt">

</td>

</tr>

</table>

</form>

這個頁面是讓妳選擇上傳文件來的,然後把妳選擇的文件壹些值傳到upfile_flash.asp?id=id這個頁面進行處理

最後第三個頁面upfile_flash.asp,也就是處理頁面了

<!-- #include file="conn.asp" -->

<%Server.ScriptTimeOut=5000

'ConnectionDatabase()

%>

<html>

<head>

<title>文件上傳</title>

<meta

  • 上一篇:給幾個推薦DV吧。。。。介紹壹下dv基本知識唄
  • 下一篇:房地產網站源代碼
  • copyright 2024編程學習大全網