My situation is that I have two PHP files in which:
-
Archivo1.php
(form) -
Archivo2.php
generates a consecutive code.
How can I get my generated code in archivo2.php
and send it or request it to my archivo1.php
(form) in which I intend to store it in a input text
?
I add my content so you can see what I need to do
My main form generates an application.
my add submit request button executes the insert from AJAX. Or there will be a way to show my result in the input, just as the page with the folio value is polled.
Once pressed my button inserts the data to my database and in turn generates my consecutive folio.
in the image in the comment where it says here the code is generated, that value of the variable is the one that I require I want it in an input text in my form.
The input text is the one under my add request button and in front of the download type, this section appears once the record is added.
I hope you have given me to understand