Seperating Filenames

I'm using the input File method for users to upload their files to a folder on a website, I wanted to store the filename in the database but the information that is produced from the input File is an absolute path to the file on the users system (ie. c:/usersfolder/usersfile.doc)

where as I only want the filename (usersfile.doc). I am presuming that this is going to be a Split method but is there a decent place to find a tutorial on this. I've had a good google but can't seem to find anything.

View Replies


ADVERTISEMENT

Seperating Results

I'm creating a site that pulls details from a database & display it on screen. Problem is that there's sometimes loads of data which makes the page huge. What I want it to do is display ten and a next page link to display the next ten. Like the way Google displays results. Problem is I don't know how to generate pages on the fly. So the question is can it be done and does ne1 know how to do it?

View Replies View Related

Seperating Textarea Values

is it possible to seperate the values in a textarea in ASP ?

sentence number 1 is by example: Car
sentence number 2 is by example: truck

when i post the asp page ( and form offcourse ) both car and truck is putted in one thing(string)

How can i seperate the two at the receiving asp page:

this is the idea ( syntax is bull**** )

frankie(1) = Request.Form("kindoftransportation[1]")
frankie(2) = Request.Form ("kindoftransportation[2]")

OR do i need javascript to this kind of stuff?

View Replies View Related

ASP VBS SQL Seperating Articles By Years And Months

I'm completely stumped on how to write a loop for this.

I want to generate a dynamic list of links (years) and another of months based on the publish dates i have in my database. So if a month is not present the code would omit it.

View Replies View Related

Seperating Data From Single Table Field (string)

I need a way of putting say 10 to 20 bullet points in one table field in an
Access database

- say seperate them with a special character, then build a bulletted list on
my page.

If I can get the page to detect each special character, insert a new bullet
and move on to the next occurance in the string... Code:

View Replies View Related

Get All Filenames From A Directory?

Is it possible to read the all filenames from a directory? Basically I want to grab all the filenames from a directory and make a flat file with all the values in it.

View Replies View Related

Concatenate Filenames

I am developing a school Intranet and have an ASP page that allows students to upload files to the server for marking by teachers.

Unfortunately students often do not identify themselves correctly in the work they submit, so I am trying to find code that changes the name of the file they upload, by adding the their login name. (the the server variable AUTH_USER.)

AUTH_USER is easy to get but to perform the concatenation has me stumped.

View Replies View Related

Use FSO To Copy Filenames To A DB?

I must have about 300 images I intend to manually type into a database. Aaaaargh! I was hoping someone might be able to give me a script that if I were to place all the files on a server, I could access the directory, and loop through each of the files, storing the name in a field... Can it be done?

View Replies View Related

Reading Filenames In A Folder

I would like to read the contents of folder and display filtered results in my page.

View Replies View Related

ASPUpload. Write Indivdual Filenames To DB

I've used asp upload before to upload single files to my server and write the name of the file to a database. I'm now trying to upload two files and write each file name to a different field in a record.

Currently my code says: ....

View Replies View Related

Sort Filenames With Download Links By Date - Multidimensional Array ??

i use this script to generate download links from directories which are first passed to an script to record the number a link is clicked.

the function is calle with a path like:
ListFolderContents(Server.MapPath("/dir1"))

my question now is: can i write this to an multidimensional array (or object oriented?) - and then sort it by date ?? if so how ? Code:

View Replies View Related

Converting Spaces In Filenames To "%20"

I'm writing a shopping cart system, and the item listings have thumbnails along the left side, kind-of like the layout of eBay. This works fine and dandy unless the filename happens to have a space in it. When there's a space, the Url ends where the space is. I tried using the replace function, but to no avail. I tried ItemPic=(replace(ItemPic," ","%20")

However, the filename then becomes something like Cool%2520Item.jpg instead of Cool%20Item like it needs to be. If anyone has a solution other than going through about 10000 pictures and renaming the ones with spaces on how to make this work. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved