amirkharkongor
Posts: 6
|
| Posted: 12/27/2004, 8:51 PM |
|
How to retain or save the previous selected value of a list box as a new default value
|
 |
 |
Ozum
Posts: 57
|
| Posted: 12/30/2004, 2:24 PM |
|
The straight way is you should record it in a database.
Or if it is only between 1 or 2 pages: Include a hidden field with the same name of listbox in those pages. When you submit the form from one of these pages, your listbox value is retained.
Or you can save its value in a cookie or session variable and check while drawing listbox if cookie/session variable has a value. (Which I think an overkill/misuse of cookies and session variables.)
|
 |
 |
|