wejofost Posted February 15, 2008 Share Posted February 15, 2008 I have 5 pages that collect data ( a row of between 4 and 6 items per page ) I wish to display the collected data ( a row of between 4 and 6 items from each page ) in a table of results in the final "display" page. How can I store the intermediate result during processing other pages for subsequent display on the last page. Do I use Global data stores or do I have to use a MySql database? Wej Parry Quote Link to comment Share on other sites More sharing options...
nogray Posted February 15, 2008 Share Posted February 15, 2008 an easy way to do it is by using hidden input fields For example, the first page has a field called "FirstName" and the user input "Smith" second page will have <input type="hidden" name="FirstName" value="Smith" /> and so on. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 15, 2008 Share Posted February 15, 2008 Use sessions At the beginning of each script put <?php session_start(); ?> The each item you want to start do <?php $_SESSION['someitem'] = $_POST['someitem']; ?> In the final page do <?php $someitem = $_SESSION['someitem']; $another = $_SESSION['another']; // // etc // ?> Ken Quote Link to comment Share on other sites More sharing options...
wejofost Posted February 16, 2008 Author Share Posted February 16, 2008 O.K. Thank you. I'll give it a go. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.