Hi!
Is it possible to automatically submit array from a php file to controller without having a submit form?
I am trying to submit data which generated from a jsscript. I wanted to save this data into my database.
My first method was to save the output into a text file then explode this file into my controller where I can submit the data into my database.
This method works fine but I have to change it because of the number of scripts that I am using.
Now my problem is how to submit this data, which is an array to my controller where I can save it to my database. Please help. Thanks in advance!
Hi!,
Did you think about the sending data to your controller via ajax ? When your scripts finish data generating you can callback a function to send data via ajax.maybe
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community