Sending form to two php files

0

I have a curious doubt and maybe an idiot, but come on.

Is it possible to send data from one form to two different files in php?

    
asked by anonymous 03.06.2016 / 21:19

2 answers

1

Using PHP: You can send via post or get to a file (controller), which will handle and distribute the data to the 2 different models.

Using JAVASCRIPT: You can get the fields you want and send (via post or get) to different files via AJAX.

I hope I have helped.

    
03.06.2016 / 22:16
1

As Alan said, this is possible via AJAX.

Even though I do not know your needs, I can say that the most "cheap" will always be to do the entire processing in a single PHP server-side script.     

04.06.2016 / 02:49