Jump to content

PHP form element cache


mani_

Recommended Posts

Hello everybody.I need to know how can i store the values of a select list box in session.Consider i have a selection list

<select size=10 name="list1"><option value="val1">Value 1</option><option value="val2" selected >Value2</option><option value="val3">Value 3</option><option value="val4">Value 4</option></select>

I want to ask when user click the submit button the page goes to next, and got an error. on the next page there is a button called back. When user click on that button it should return to form and with the same list box elements and same element should be selected.how to perform this in php, may be values can be stored in sessions but i dont have idea of list boxes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...