Forums / Developer / Getting selected Enum elements in php. / Comment38623
Dave Dykshoorn
Friday 22 August 2003 10:35:20 am
I'm glad it was useful. This is how I used $selectedEnums
I needed to figure out the values that were selected (EnumValue) and then put them into a comma seperated list. Here's how I did it, it's pretty basic.
$myList = ""; foreach( $SelectedEnums as $SelectedEnum ) { if ($myList == "" ) $myList = $SelectedEnum->EnumValue; else $myList= $myList . ',' . $SelectedEnum->EnumValue;}