PDA

View Full Version : uploaded images dont work with php form


kevy
07-04-2008, 10:55 PM
Hi,

My php form, using a "file" input, seems to only store the image name in the database. I thought that by changing the file type, it would upload the full filename, however I don't know which file type to use other than "text".

When I display the table data, if the intended file was localhost\antiques\images\image1.jpg all that will show is the text "image1". So hopefully when this problem of uploading the full filepath is corrected, will the images begin to show?

Thanks!

kevy
07-05-2008, 03:07 AM
problem solved, simply moved images to the main directory.. obviously i need to add the path myself..

davidj
07-05-2008, 08:31 AM
nice one mate