SofiaM Posted February 22, 2008 Share Posted February 22, 2008 Hi there, I have written a html form that should uses php to collect inserted answers and then writes them to my database. I have been trying to get the passing of the data between the pages working. I attempted to use arrays for it. However, so far I haven't had much joy. I am new to php, but have been self studying for a week now. Is there any way I can accomplish my task? I don't want the form on one page, but each question on a seperate one. Any help/suggestions would be grately appreciated. Sofia Link to comment https://forums.phpfreaks.com/topic/92420-passing-data-between-pages/ Share on other sites More sharing options...
Daniel0 Posted February 22, 2008 Share Posted February 22, 2008 Store them in a session. $_SESSION['answers'] = $answers; http://www.php.net/manual/en/ref.session.php Link to comment https://forums.phpfreaks.com/topic/92420-passing-data-between-pages/#findComment-473501 Share on other sites More sharing options...
vicodin Posted February 22, 2008 Share Posted February 22, 2008 Dont forget to put this at the beginning of each page session_start(); Link to comment https://forums.phpfreaks.com/topic/92420-passing-data-between-pages/#findComment-473502 Share on other sites More sharing options...
SofiaM Posted February 22, 2008 Author Share Posted February 22, 2008 Thank you for the suggestions. I will try that and let you knwo how I get on ) Link to comment https://forums.phpfreaks.com/topic/92420-passing-data-between-pages/#findComment-473503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.