0

I'm creating a form:

Page 1 has multiple input fields, as well as dynamic form fields (using jquery load to add additional inputs as necessary).

Page 2 reads these inputs and sets the values to a session variable (the only values I'm storing in the session are the dynamic inputs).

Now, if someone gets to this page 2 and realizes an input is incorrect, he will use back button to return to page 1. Before I put in sessions, all the information would still be there. After putting sessions in, the form returns completely blank aside from the session variables.

My simple question: is the session_start() forcing a page reload?
Furthermore: How should I get around this? Do I have to add every input to a session variable on page 2?

Thank you!

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by vibhaJ
0

Yes you have to add every input to a session variable on page 2.
Post your code with CODE tag for more detail.

Edited by happygeek: fixed formatting

0

Yes you have to add every input to a session variable on page 2.
Post your code with CODE tag for more detail.

That's all I need to know -- thanks.

Edited by happygeek: fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.