form ±íµ¥ ÓÃÁËenctype="multipart/form-data"ºóÔõôÑù½ÓÊÕ±íµ¥µÄÊý¾Ý°¡?
ÓÃrequest.form("name")È¡²»µ½°¡!
set upload=new upload_5xsoft
response.write upload.form("userName")&" <br>" //»ñÈ¡¿Ø¼þÖµ
set file=upload.file("fileImage") //Ȗ ......
ÎҵĸùĿ¼ÊÇweb ÉÏ´«ÎļþÊÇweb/index.asp Êý¾Ý¿âÊÇweb/Data/Magic.mdb Êý¾Ý¿âÖÐÓиö±ípic ±íÖÐÓÐ×Ö¶Îpicname¡¢username¡¢Addtime¡¢addname¡¢location¡¢pp
×Ö¶ÎpicnameÄܲåÈëÊý¾Ý¡¢×Ö¶ÎlocationÒ²ÄܲåÈëÊý¾Ý¡¢×Ö¶Îpp²»ÄܲåÈëÊý¾Ý£¬Èç¹ûÒª¸ÃµÄ»°£¬Ó¦¸ÃÔõô¸Ã»¹Çë´ó¼Ò´Í½Ì£¡£¡
ºìÉ«²¿·ÖΪÎÊÌâ¹Ø¼üÇøÓò ......
ÎÒÓÃASP×öÁËÒ»¸öÂÛ̳ҳÃ棬Ҫͳ¼ÆÔĶÁÊý¡£Ã¿´ò¿ªÒ³ÃæÒ»´Î¾ÍUPDATEÔĶÁÊýÄǸö×ֶΣ¬ÕâÑùÖ»ÒªÒ³ÃæË¢ÐÂÒ»´Î¾Í»áUPDATEÒ»´Î£¬ÇëÎÊÒªÔõô·ÀֹˢÐÂÒ³ÃæÀ´Ôö¼ÓÔĶÁÊý£¿
Çå³ý»º´æ ÅжÏÉÏÒ³À´Ô´µØÖ· Õâ¸öÖ»ÊÇÏë·¨ ÎÒûÓÐʵ¼ù¹ý
cookie!Êý¾Ý¿â
ÎÒÒ»Ö±ÓÃcookie£¡¼´Ê¹ÊÇcookieÇåÁËÔÙˢУ¡ÄѵÀÒ»¸öÓû§¿´Á½´ÎÍøÒ³¾ÍÒª¼ÇÒ»´Îà ......
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getElementById('Image1').src=a.value;
alert(document.getElementById('Image1').src);
}
......
ÎÒ×öÁËÒ»¸öASPÍøÕ¾£¨µÚÒ»´Î×ö£©£º
ÔÚÎÒµçÄÔÉÏ£¬ÎÒÏÂÁ˸öMySQLµÄODBC£¬
Á¬½ÓÓï¾ä£º
ConnStr = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=127.0.0.1;DATABASE=test;USER=root;PASSWORD=123456;"
¿ÉÒÔÓã¬Á¬½ÓÕý³£¡£
ÏÖÔÚÒª´«µ½·þÎñÆ÷ÉÏ£¨Ò²ÊǵÚÒ»´ÎÉÏ´«ÍøÕ¾£©£¬
ÏÖÔÚÖªµÀÊý¾Ý¿â£º
......
HTML code:
dim jf
set conn=server.createobject("adodb.connection")
connstr="Driver={Sql Server};Server="&Sqlip&";Database="&Sqldb&";Uid="&SqlUid&";Pwd="&SqlPwd&";"
conn.Open connstr
Set RS=Conn.Execut ......