matvespa Posted March 10, 2010 Share Posted March 10, 2010 Hi. Im trying to put a session onto my form. I am only able to do it for textboxes. Im having problem with session on dropdownlist. Is there any solution for drop down list session. If not, is there any other alternatives? thank you!! Link to comment https://forums.phpfreaks.com/topic/194751-session-on-form/ Share on other sites More sharing options...
trq Posted March 10, 2010 Share Posted March 10, 2010 Mind posting your problematic & relevant code? Link to comment https://forums.phpfreaks.com/topic/194751-session-on-form/#findComment-1024125 Share on other sites More sharing options...
teamatomic Posted March 10, 2010 Share Posted March 10, 2010 Should be the same as a standard text widget except for: select name=dropdown dropdown will be a var select name=dropdown[] dropdown will be an array and can be used with <select name="dropdown[]" multiple="multiple"> to allow multiple selection without making the name= an array only the last chosen selection will show up as the var's value even if multiple is specified. arrays can be assigned to a session var $_SESSION['var']=$array; HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/194751-session-on-form/#findComment-1024131 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.