Jump to content
Sign in to follow this  

PHP form element cache

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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...