Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FORM WITH ASP

Status
Not open for further replies.

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
 
Oops forgot the submit button
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top