Skip to content
Advertisement

How to run 2 or more input files in the same form with PHP

I would like to know how to run 2 or more input files in the same form, I have to upload some documents by using php, I made separate forms and they work, but I need to all together however I dont know how. I need to put only two forms as example actually I need to put 3 but the 3rd is larger so it would be much code to read with an example putting only two I would be able to do the rest.

Note: Form 1 and Form to upload data to different tables.

Form 1

JavaScript

Form 2

JavaScript

I would like a form like this: example

With the Fk I would know which number the 3 docs belong to.

Advertisement

Answer

I solved the problem myself I just changed the vars of the forms and thats all, Its a dirty and bad solution but it works for now.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement