Transfer user data from one page to another

Discuss coding issues, and scripts related to PHP and MySQL.
mluci12
Posts:39

Transfer user data from one page to another

Hello!
I have page: autobelgia.ro/submit1.html from to: autobelgia.ro/submit5.html from autobelgia.ro/submit1.html to submit5.html user complete with his details.
How can i transfer details from first page to last. I don't like url trasfer because exists more details.

Admin Posts:805
Hello,
If the second page is just a simple html document (without php code), to keep data from one page to another html page you can use JavaScript to keep data in Cookies or localStorage (or sessionStorage).
If data is sent to a server script, you can use a <form> with method="post" to send form data to server (see this tutorial: https://coursesweb.net/php-mysql/using-html-forms ), than, in php you can store $_POST data in $_SESSION if you want to use it in a 3rd php page.