Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Including other field information when uploading
Curlytail
Junior Member

Posts: 2
Registered: 4/5/2011
Location: Spain
Member Is Offline
posted on 4/5/2011 at 12:18 PM Reply With Quote
Including other field information when uploading


Hi, there,

I have scoured the net for the answer to this one, but nothing is forthcoming.

I have used upload in many other sites, but I cannot now get it to work when the form includes other site information.

Is there something I am missing when setting the form up?

The test form I am using is very basic and includes a hidden field which when I interrogate on the form processing page, has no value - in fact all field values have been lost.

I am not a novice programmer, but this one has me stumped.

Can anyone suggest the root of my problem?

Regards
View User's Profile View All Posts By User U2U Member
Curlytail
Junior Member

Posts: 2
Registered: 4/5/2011
Location: Spain
Member Is Offline
posted on 4/5/2011 at 02:56 PM Reply With Quote
The code


Here is the coding for the page - maybe this will help:

Form page:

<form method="post" action="test.asp" EncType="Multipart/Form-Data">
Photo: <input name="photo" type="file"><br>
Any text: <input name="stuff" type="text"><br>
<input name="Submit1" type="submit" value="submit">
<input type="hidden" name="action" value="process">
</form>

Form hadling page:

dim objUpload, StrAction, StrStuff

Set objUpload = Server.CreateObject("Dundas.Upload.2")

StrAction= objUpload.Form("action")
StrStuff = objUpload.Form("stuff")
Response.write "Action: " & StrAction
Response.write "Stuff: " & StrStuff
For Each objFormItem In objUpload.Form
Response.write objFormItem.Value
next

This returns no values at all. The looping doesn't even parse once. I put an alert inside to test this.

Thanks for any help
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Free Download Free Download
Product Documentation Documentation
Documenation Page
Code Samples
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004