Sequentially Page

PAGE 1 - PAGE 2 - PAGE 3 } this all is a step-by-step form. How I prevent/deny user direct jump on PAGE 2 - PAGE 3. If he try to jump on that pages he will redirect to PAGE 1 or main page via PHP script.

Without MySQL LOGIN and any database.
How we can do this?

Not sure if this is the best solution, but you could set a key in a session variable on page 1 that you check for on page 2. If the variable is not the right value, you would redirect back to page 1 or the main page. Similarly for page 2.

If this is a series of forms I presume you are collection data from the user on each page and storing it somehow.
You could check for the the presence (or absence) of data from the previous page to validate the referrer.

1 Like

How?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.