Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - File upload mod - help needed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

File upload mod - help needed

 Post Reply Post Reply Page  12>
Author
svpworld View Drop Down
Groupie
Groupie


Joined: 06 March 2003
Location: usa
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote svpworld Quote  Post ReplyReply Direct Link To This Post Topic: File upload mod - help needed
    Posted: 19 October 2003 at 10:25am

I hope this is the right place to post this, if not please move it.

I am in the process of modifying the upload_files.asp to log the files uploaded in a separate table, including filename, topic_ID, Thread_ID, plus 2 other choices specific to my forum (namely type of file and file source).

For the latter I have added two list boxes using <option>....</option> which are populated from a table in the sql db.

My first question is how to pass the chosen values from the list boxes included in my form back to the script, given that it reposts and uses the post rather than get option. I am a novice at ASP so finding this a bit tricky to work out, despite it may be easy. I've tried reading the variables using request.form but couldnt get it working.

Second question is can I determine the Topic_ID and Thread_ID at this stage during file upload, or do i have to do this after the file link is added to the post (so I know where the file was added)?

Thanks!

Simon

Back to Top
svpworld View Drop Down
Groupie
Groupie


Joined: 06 March 2003
Location: usa
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote svpworld Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 1:17pm

Further to my last post, the problem appears to be that using Persits ASPupload the function file upload generates an error if I attempt to request the variables from the lists in my form first. If I try and request them after the file upload they are no longer available.

For example I placed this at the beginning of the upload_files.asp page so when it was reposted it would get the values of my drop down lists on the file upload form viz ;

Dim SVPname,SVPsource
SVPname = Request.Form("FileTypeID")
SVPsource= Request.Form("FileSourceID")

In doing so I presume it affects the filename passed to the upload function?  Hope someone follows what I mean!

Simon

Back to Top
Str8Dog View Drop Down
Senior Member
Senior Member


Joined: 18 December 2001
Location: United States
Status: Offline
Points: 2118
Post Options Post Options   Thanks (0) Thanks(0)   Quote Str8Dog Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 2:04pm
svpworld, seeing as how you have a limited knowledge of ASP, your best bet may be to offer $20-$30 on the board to anyone who can make the mod for you.

There are several people on the board who could do this mod for ya in short order.
[IMG"> http://www.str8dog.com/images/str8dog.gif">
I wasn't born with enough middle fingers.
Back to Top
svpworld View Drop Down
Groupie
Groupie


Joined: 06 March 2003
Location: usa
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote svpworld Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 2:17pm

I appreciate that Str8Dog, but the essence of doing this is for me to learn. I'll try another route, and keep the file upload dialog separate from my own form.

Regards
Simon

Back to Top
Str8Dog View Drop Down
Senior Member
Senior Member


Joined: 18 December 2001
Location: United States
Status: Offline
Points: 2118
Post Options Post Options   Thanks (0) Thanks(0)   Quote Str8Dog Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 2:28pm
If you are interested in learning asp, I highly suggest the following books:

Beginning ASP 3.0
Beginning ASP Databases

These two books will cover everything you need to know to modify the forums. They are put out by Wrox press and should be avalible from Amazon for around $10 used.
[IMG"> http://www.str8dog.com/images/str8dog.gif">
I wasn't born with enough middle fingers.
Back to Top
svpworld View Drop Down
Groupie
Groupie


Joined: 06 March 2003
Location: usa
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote svpworld Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 2:33pm

Thanks, I'll check those out!  I'm ok with most other aspects of ASP including DB accessing and control, its just forms sometimes throw up unexpected surprises!  I thought it would be simple enough to request.form and obtain any objects within the form, but it seems the filename field works a bit differently to what I expected.

Regards
Simon

Back to Top
Tegwin View Drop Down
Senior Member
Senior Member


Joined: 03 September 2003
Location: United Kingdom
Status: Offline
Points: 430
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tegwin Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 2:57pm
Originally posted by Str8Dog Str8Dog wrote:

If you are interested in learning asp, I highly suggest the following books:

Beginning ASP 3.0
Beginning ASP Databases

These two books will cover everything you need to know to modify the forums. They are put out by Wrox press and should be avalible from Amazon for around $10 used.


I agree with Str8Dog these two books are really good. I have bought them both recently and i am halfway through the Beginning ASP book. Well worth the money

If you dont want my peaches, dont shake my tree
Back to Top
svpworld View Drop Down
Groupie
Groupie


Joined: 06 March 2003
Location: usa
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote svpworld Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 3:01pm

Cheers guys, I've got them both on order as we speak!

(but I'd still like to know if theres an easy way to read these darn listboxes in the upload form!  )

Simon

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.