61,112
社区成员
发帖
与我相关
我的任务
分享
<div id="uploadprofile">
<form method="post" action="uploadphoto.do"
enctype="multipart/form-data">
<table>
<tr>
<td>Photo:</td>
<td colspan="2"><input type="file" name="file" value="" /></td>
</tr>
<tr>
<td>Album:</td>
<%if (albumlist.length==0) { %>
</tr>
<tr><td>You do not have any album! Create first.</td></tr>
<%
}
else
{
%>
<tr><td>
<select>
<%
for (int i=0; i<albumlist.length;i++){
%>
<option name="album" value="<%=albumlist[i].getAlbum()%>"><%=albumlist[i].getAlbum()%></option>
<%
}
%>
</select></td>
</tr>
<%
}
%>
</tr>
<tr>
<td>Caption:</td>
<td><input type="text" name="caption" value="${caption}" />
</td>
</tr>
<tr>
<td><input type="submit" name="button" value="Upload" /></td>
</tr>
</table>
</form>
</div>