Page 1 of 1

Transfer user data from one page to another

Posted: 18 Aug 2016, 06:37
by mluci12
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.

Transfer user data from one page to another

Posted: 18 Aug 2016, 14:21
by Admin
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.