Reputation: 31
I have read on these pages that HTML/HTTP
is stateless and so cannot retain data when moving from page to page without using Session
array.
I am trying to collect user reviews for products. while entering their review, users are prompted to enter user name or email. If they have an account with us already, then they are encouraged to login and are directed to a login page. If the login email and password are right, they are redirected to the product review page to continue with the product review.
Whatever data they entered before moving over to login page, is not retained on return. If its not possible to retain the data and display, without using session
variables, would it be possible to retain and display the data already entered, if i use modal dialog box for login instead?
Upvotes: 2
Views: 162
Reputation: 315
You can pass your data from your page to modal of the same page. Try this: Passing data to a bootstrap modal
However, I suggest that you use session if you're going to pass the data to more than 1 page.
Upvotes: 1
Reputation: 2012
you would have to submit the form details on one page and send them to the other using either $_POST or $_GET.
that way, you could pass all the information between pages.
Upvotes: 1