Here I had a form. Enter information into it. JavaScript checks the number of characters and when all the rules, the button is unlocked and you can click on it. When you click JavaScript displays the form to add 2 files. What is the problem. How do I combine these 2 forms and send the information along with the book by the post method. Give the forms the same name? After all, javascript does not insert the code, but displays it. That is, I can not put an end to the form after

<table id="**"></table></form> 
  • 2
    I think it's too early for you to tackle javascript. We must start small. For example, learn basic grammar. Learn some typing rules, such as, for example, putting spaces after the end of a sentence. - cy6erGn0m
  • If you do not have an answer on the topic, it is better not to write anything. You do not like how the question is written? I did not have much time to write with all the rules of the Russian language. - Ivan
  • one
    You do not have time to write a small paragraph correctly, and especially a short three-word heading, but you expect others to have time to read astrakhan and find an answer. I'm not talking about some intricate formulations of the rules of the Russian language, but about the most basic things, such as how to write "union" instead of "jam." - cy6erGn0m
  • Well, if you think so! The topic is closed. I found the answer myself. - Ivan

1 answer 1

So do not share these forms, add file fields to it if everything else is entered correctly. Better yet, do not hide the file fields at all, but show them immediately along with the rest, but highlight the unsatisfactory fields. And there will be no problems then with the union of forms.

  • So I did) Now I’m really thinking how to check if the file is selected) - Ivan
  • Check on the server + the client for empty values ​​in the file field. - Sergey