pianoman993 Posted August 2, 2009 Share Posted August 2, 2009 Hello everyone I hope I have a fairly simple question here Lets say I had a <select>..<option>1</option>..<option>2</option>..</select> type up setup. When the user clicks the submit button, is there a way I can read all those options and not just the ones selected? Thank you for reading this! - Mark Quote Link to comment https://forums.phpfreaks.com/topic/168518-reading-all-the-values-from-a-form/ Share on other sites More sharing options...
wildteen88 Posted August 2, 2009 Share Posted August 2, 2009 No. The select field will only return the option(s) selected by the user. Why do you need to retrieve all options? Quote Link to comment https://forums.phpfreaks.com/topic/168518-reading-all-the-values-from-a-form/#findComment-888966 Share on other sites More sharing options...
pianoman993 Posted August 2, 2009 Author Share Posted August 2, 2009 Crap Well, I have 2 Select Boxes, and buttons inbetween that move selected options from one box to the other. After the form is submitted I want to get all the values that were in the box on the right :/ Quote Link to comment https://forums.phpfreaks.com/topic/168518-reading-all-the-values-from-a-form/#findComment-888967 Share on other sites More sharing options...
watsmyname Posted August 2, 2009 Share Posted August 2, 2009 Crap Well, I have 2 Select Boxes, and buttons inbetween that move selected options from one box to the other. After the form is submitted I want to get all the values that were in the box on the right :/ if its list box then before submitting you can select all by using javascript and the submit so that you can get all the values. Quote Link to comment https://forums.phpfreaks.com/topic/168518-reading-all-the-values-from-a-form/#findComment-888970 Share on other sites More sharing options...
pianoman993 Posted August 2, 2009 Author Share Posted August 2, 2009 Ah nice! I like the way you think. I will definitely do that Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/168518-reading-all-the-values-from-a-form/#findComment-888972 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.