MichaelMackey Posted June 17, 2008 Share Posted June 17, 2008 In my code occasionally a drop down will be preset for the user. What I've been doing is just selecting the desired choice and then disabling it, but this doesn't seem to work with the post option. Is there a way to make a drop down read only? Or something similar that can achieve what I want? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/110591-solved-disable-a-drop-down-yet-still-have-it-post/ Share on other sites More sharing options...
Xurion Posted June 17, 2008 Share Posted June 17, 2008 A read only field will not send post data. Have a hidden field with the data you want to send. Quote Link to comment https://forums.phpfreaks.com/topic/110591-solved-disable-a-drop-down-yet-still-have-it-post/#findComment-567356 Share on other sites More sharing options...
MichaelMackey Posted June 17, 2008 Author Share Posted June 17, 2008 Ah I see, I had done something earlier and assumed it did, after checking I see it was never set to readonly like I thought. Thanks anyway. Quote Link to comment https://forums.phpfreaks.com/topic/110591-solved-disable-a-drop-down-yet-still-have-it-post/#findComment-567362 Share on other sites More sharing options...
MichaelMackey Posted June 17, 2008 Author Share Posted June 17, 2008 A read only field will not send post data. Have a hidden field with the data you want to send. Actually after trying this again, it IS letting me send readonly data as post. Either way however it seems there isn't an option to set a drop down to readonly. Quote Link to comment https://forums.phpfreaks.com/topic/110591-solved-disable-a-drop-down-yet-still-have-it-post/#findComment-567374 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.