php - Sign up with multiple forms -


I am using Laravel and on my website I need to throw several steps to register one. Is a first instance where the user enters his information and gives a profile picture, there is a second view to choose the account type and the third view to pay inscription fees with PayPal. I have to get all the information in the final scene using Input :: all () , I hope that there is an easy way to do this

I solved it by creating a php square which stores all this data and then creates an object of this class and it is stored in one session. Does. class data {public $ data1; Public $ data2; Public $ data3; // should check if the data is complete checkdata () {if (condition) {return true; } Other {return false; }}} Load existing data from store data or sessions in session. $ ($ _ Session ["data"]) {$ data = $ _SESSION ["data"];} and {$ data = new data ($); $ _SESSION ["data"] = $ data;} // Whatever needs to be done, if necessary, change the changes. $ Data-> $ data1 = $ _POST ["data1"]; // Once all the data is complete and need to be saved ($ Data- & gt; checkdata ()) {saveorsenddata ($ data); set up ($ _ session ["data"]);} // nothing < / Div>

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -