Jump to content


Check out our Community Blogs

AlphaFirstPlatoon

Member Since 05 Nov 2010
Offline Last Active Nov 15 2010 08:14 AM
-----

Topics I've Started

For loop in Persits.Upload.1

05 November 2010 - 11:00 PM

Hello Guys, Need help. My form show below its a file loader. I checking all the checkboxes, and it should display it to next form which is page2, but no value showed I must use Persits Uploader. Its like a one file with 3 value or 1:3. sorry for the grammar. Any suggestion? any will be appreciated.

thanks

Page1.asp

<FORM NAME="myform" action="URL.asp" method="post" enctype="multipart/form-data">

<input type="checkbox" name="myartist" value="1">
<input type="checkbox" name="myartist" value="2">
<input type="checkbox" name="myartist" value="3">
<input name="FILE1" type="file" class="general1" value="" size="50" />
<input type="submit" value="Save" name="submitme">
</form>

Page2.asp

<%
Set Upload = Server.CreateObject("Persits.Upload.1")

Upload.OverwriteFiles = False
On Error Resume Next

Upload.SetMaxSize 1048576 ' Limit files to 1MB
Count = Upload.Save("c:\")
SET file1 = Upload


For xx = 1 to Upload.Form("myartist").Count
Response.Write("loop" & xx)
Next

%>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download