Talk:ERDF forms problem

From n² wiki

Jump to: navigation, search

maybe if I just add:

<form id="x">
	<select class="dc-subject" multiple="multiple"><?php $selected //don't print this out ?>

	<?php foreach($selects as $option => $value):?>
		<option 
			<?php if(in_array($value, $selected)):?>selected="selected"<?php endif>
			value="<?=$value?>"
			><?=$option?></option>
	<?php endforeach?>
	</select>
</form>
Personal tools