Jump to content

second upload and $_FILES/mysql help


kb9yjg

Recommended Posts

Hey all, I have a couple of issues I need some help on. First off I have got a form that when filled out inserts data into the db. My issue here is that I am not getting the actual file name from the $_FILES['pdfname'] inserted into the table. All im getting is a slash /

Second issue I am faced with is trying to get two uploads to happen on the same form. one for a pdf file and the other for an image file. How would I best rewrite the code  to accept both pdf and a png in the fewest lines of code? Your help is greatly appreciated. If you could also suggest a way to insert the name of the image file in the db as well it would be greatly appreciated as well. See code below.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/103904-second-upload-and-_filesmysql-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.