mani_ Posted March 23, 2006 Share Posted March 23, 2006 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 More sharing options...
calvin182 Posted March 23, 2006 Share Posted March 23, 2006 couldnt you use a javascript back form like this: <form><input type="button" value="Back" onclick="history.back()"/></form> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now