![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 站務人員 站長 ![]()
![]() ![]() ![]() |
把以下的code,存成html, <html> <head> <title>UserUpload</title> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript> <!-- var filecount=1; function add_onclick() { strHtmlID = "uploadlist" + filecount filecount++; strHtmlTag ="<p id=uploadlist" + filecount + ">" + filecount + ".<input type=file name=file size=30></p>"; document.all(strHtmlID).insertAdjacentHTML("AfterEnd",strHtmlTag); } function delect_onclick() { if (filecount>1){ strHtmlID = "uploadlist" + filecount filecount--; document.all(strHtmlID).outerText = ""; } } function close_onclick() { window.close(); } //--> </SCRIPT> </head> <body bgcolor="#CCFFCC" text="#000000"> <form name="formUpload" enctype="multipart/form-data" method="post" action="Default.asp?Job=UploadSave"> <p id=uploadlist1> 1.<input type="file" name="file" size="30"> </p> <p> <input type="button" name="add" value="+" LANGUAGE=javascript onclick="return add_onclick()"> <input type="button" name="delect" value="-" LANGUAGE=javascript onclick="return delect_onclick()"> <input type="submit" name="beginupload" value="開始上傳"> <input type="button" name="close" value="關閉" LANGUAGE=javascript onclick="return close_onclick()"> </p> </form> </body> </html> 在資料庫的設計上,要解決1對多的問題,通常是再分一個table囉 要不就是全部放在一個text,以某個特別的字串常做分隔
本篇文章發表於2002-04-09 00:00
|