gsc123
Programmer
- Jan 24, 2008
- 197
Hi I want to fill a text field in and then post the form back to the same file and rename some files ... the form is empty when it comes back to the same file
<form name="renamefiles" method="post" action="newindex.asp?go=type_rename">
<input type="text" name="filename" size="40">
</form>
sub renamefiles
%><TABLE BORDER=0><TR><%
for each file in f.files
arr(i) = file.name
Response.Write "<Br>file to": Request.Form("filename")
file.name = Request.Form("filename")&i&".jpg"
i = i + 1
next
Response.Write "done "&i&"files"
%>
</TABLE><%
end sub
<form name="renamefiles" method="post" action="newindex.asp?go=type_rename">
<input type="text" name="filename" size="40">
</form>
sub renamefiles
%><TABLE BORDER=0><TR><%
for each file in f.files
arr(i) = file.name
Response.Write "<Br>file to": Request.Form("filename")
file.name = Request.Form("filename")&i&".jpg"
i = i + 1
next
Response.Write "done "&i&"files"
%>
</TABLE><%
end sub