我的代码如下,扩展名保存为ASP,手机上传老是出现500错误,用摸拟器上传无错
求解
<%
Dim MM_conn_STRING
MM_conn_STRING = "driver=SQL Server;server=localhost; uid=***;pwd=***;database=database"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>趣乐相册-上传照片</title></head>
<body>
<p>
<form action="upload.asp" method="post" enctype="multipart/form-data" name="myform" id="myform">
照片名称:<input name="strname" type="text" id="strname"/><br/>
照片类别:<select name="typeid" id="typeid">
<% set conn= Server.CreateObject("ADODB.connection")
conn.open MM_conn_STRING
sqltype="Select * From wap_photo_class"
set rstype=server.CreateObject("adodb.recordset")
rstype.open sqltype,conn,1,1
do while not rstype.eof
%> <option value=<%=trim(rstype("id"))%><%if trim(rstype("id"))=1 then%> selected<%end if%>><%=trim(rstype("class"))%></option>
<%
rstype.movenext
loop
%>
</select>
<br/>
选择图片(图片大小建议小于100KB):<br/><input name="strPhoto" type="file" id="strPhoto"/><br/>
照片说明:<textarea name="info" id="info"></textarea>
<br/>
<input type="submit" name="Submit" value="提交"/>
</form>
<a href="manage.asp">返回我的相册</a><br/>
<a href="index.asp">返回相册首页</a><br/>
<a href="../index.asp">返回趣乐首页</a></p>
</body>
</html>
<%
rstype.close
set rstype=nothing
conn.close
set conn=nothing
%>