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
%>
2 replies to this topic
#1
Posted 05 November 2010 - 11:00 PM
|
|
|
#2
Posted 13 November 2010 - 07:19 PM
As far as I know, well I was code for ASP about 6 years ago :), you need to split myartist into an array first because it returns comma separeted value not an array.
If still don't work, try change Upload.Form("myartist") into Request("myartist"). Hopes work :D.
myartist = split(Upload.Form("myartist"), ",")
For xx = 1 to myartist.Count
Response.Write("loop" & xx)
Next
If still don't work, try change Upload.Form("myartist") into Request("myartist"). Hopes work :D.
#3
Posted 15 November 2010 - 08:14 AM
:D thanks for the response, but its not working. I already try Request("myartist"), its only working if its a normal ASP code, what I mean if there not Set Upload = Server.CreateObject("Persits.Upload.1"), but I need this to upload a file.
Thanks again.
:thumbup:
Thanks again.
:thumbup:
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









