Welcome Guest, Not a member yet? Register   Sign In
Creating data confirmation website - question
#1

[eluser]jacobson[/eluser]
Hello, I have a contact form (multiple inputs) on my website and pass this variables to new view (in order to allow user to validate data). It works ok, I have my data on new website. Now I want to add a button (anchor i think) which leads to controller/send_mail but I want to pass all this data i had to this send_mail method. Is the session solution the only solution here ? to add all the data to session and destroy session after submitting the confirmation form ?
#2

[eluser]Brad K Morse[/eluser]
I would store them in session, you could also store them in a temp table, once the send_mail method is fired, delete the data from the temp table.
#3

[eluser]Mr. Pickle[/eluser]
You can put all the data in hidden fields on the confirmation page to take them like this 'with you' to the next page.

But as far as I can judge upon your question I don't really see why putting it in a session after the reload will be a problem or bad.




Theme © iAndrew 2016 - Forum software by © MyBB