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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading an existing file and path name from a database...

Status
Not open for further replies.

iao

Programmer
Feb 23, 2001
111
US
I have a form where the users can either add a new item or select an existing item from a list.

If they are adding a new item, one of the necessary form fields is a <INPUT TYPE=&quot;File&quot;> tag, where the user selects a file somewhere on the network. This file is a list of 10-digit codes that are used later on. Once this form is processed (by selecting a [Continue] or [Save] button), the path and file name of the selected file are added to the database, and a session variable is set (called Session.PIDList). This session variable lists all PID's from the selected file.

The other option the user has is to select an existing item from a list, which has already been entered. Once they do this, the file field with the [Browse] button becomes disabled, and the selected file apprears as before, except that it's disabled and the user cannot change or update this field.

Here is the problem: when the user adds a new item, the Session.PIDList variable is set to the uploaded file. The user then goes on his/her merry way, with this session variable intact. However, if the user selects an existing item, instead of uploading a new file, I have to take the existing file and pathname from the database, manipulate it so that I can reset the session variable for this selected file. I have no idea on how to do this.

Hope this makes sense. If anyone has a clue as to what I might be able to do, please let me know. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top