Session troubles

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fili
Forum Newbie
Posts: 1
Joined: Tue Jun 19, 2007 9:20 am

Session troubles

Post by fili »

Hallo there

Sorry butt my English is not so good

I am pretty new to php and now i need to make an online survey which is going to bee presented in several pages where in which page are placed some questions. I am trying to store the answer in session until the last page of questions is presented and than to add the question to the mysql db, but it is not working. I can se that the variable of page1 can be printed in page 2 but not on page3 and further.
My question is:

How can I do so that I save all the answers to the session variables or something like that so that even if the users is surfing back and forth so the variable are not going to add to the db twice or more.

Please help me!

feyd | Split from here.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

Please show us your code, particularly the parts where you set and use session variables.
Post Reply