PDA

View Full Version : Trying to upload a photo and text?


FethrdWlf
03-20-2011, 03:16 AM
So pretty much, I need to allow someone (my dad) to upload a picture and some text to his website that I'm making. Pretty much, he just needs to have an image of a knife he's made, and then a caption with it. I have the form setup, with the name the post, the description of it, and then the upload file thing after that. The only problem is, I don't know how to get the file to upload, rename itself, and then upload the link to MySQL.

For getting everything else uploaded to MySQL, that's covered, I know how to do that. Please help!

edbr
03-21-2011, 01:20 AM
you need an upload form check the tutorials on here, i think there is a turorial

FethrdWlf
03-21-2011, 03:46 AM
you need an upload form check the tutorials on here, i think there is a turorial

I've tried that one. It worked when all I was uploading was a file, but for some reason it just won't work for me any other way.

edbr
03-21-2011, 04:13 AM
then you will have to edit it or search for one

FethrdWlf
03-21-2011, 04:34 AM
then you will have to edit it or search for one

Alright. Can do!

edbr
03-21-2011, 04:51 AM
good for you, im sure you can just add an insert into your script, be sure it and the form are in a protected section