Skip to content
Advertisement

Moving Page after Validation in PHP

I want to change page after validation in PHP but, it appears on the same page with the validation.

Here is the logical process i want

JavaScript

And this is my PHP

JavaScript

I use some referance from W3School, and it makes the review of data is in the same page as the form and validation, and i want the user will be transfered to another new page for reviewing their inputed data.

Advertisement

Answer

Use a session, roughly like this:

JavaScript

on the next page, use this:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement