2.2. Passing Information from One Page to the Next
No matter how the user gets from one page to the next, you might need information from the first page to be available on the next page. With PHP, you can move information from page to page with one of the following methods:
Passing information using HTML forms: You can pass information in a form. This method is most appropriate when you need to collect information from a user.
Adding information to the URL: You can add specific information to the end of the URL of the new page. This method is most appropriate when you need to pass only a small amount of information.
2.2.1. Passing information in a form
When the user clicks the submit button in an HTML form, the information in the form is sent to the script specified in the action attribute of the <form> tag. The script can store the information, ...