On Sunday 27 January 2002 11:10, Dani wrote: > Hi everyone! > > I'm trying to put file names into variables which later I put into my > DB (MySQL) as text (only the filename and the extension). > > I tried to use the upload format form before: > <form ENCTYPE=\"multipart/form-data\" ...> > > .... > > <input type = FILE name =\"file_name\"....>
> > ..... > > When I retrived the value of the variables, I did not get the FILE NAME > and the file extension. > What I got is all the path of the file and the file name changed into > .TMP or some sort. > > How do I retrived file names and it's extension in this situation? Please read the manual chapter "Handling file uploads" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* "Are you sure you're not an encyclopedia salesman?" No, Ma'am. Just a burglar, come to ransack the flat." -- Monty Python */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]