I have a variable that is a file name eg winword.doc but the section after the . changes per file. There are three posibilities
.doc
.jpg
.0
.gif
The post collects the file type and uploads the file, how can I trim what ever the file type is eg from winword.doc to winword, but so the bit to be trimmed can be changed. Can I just trim three letters and for .0 just put else if and trim one, and how would I do this?
thanks,