HTML5 Data Bindings Formatter Support Product Page

How do I use this to load a multiple select form

Asked 13 Apr 2017 20:20:43
1
has this question
13 Apr 2017 20:20:43 Bobby Edgar posted:
I want to do this like how the old PHP worked.

<select name="color[]"  id="color[]" multiple=MULTIPLE>
<option value="Blue" <?php if (strpos($row_rsChoice['color'], 'Blue') !== false) {?>selected="selected"<?php } ?>>Blue</option>
<option value="Green" <?php if (strpos($row_rsChoice['color'], 'Green') !== false) {?>selected="selected"<?php } ?>>Green</option>
<option value="Brown" <?php if (strpos($row_rsChoice['color'], 'Brown') !== false) {?>selected="selected"<?php } ?>>Brown</option>
<option value="Amber" <?php if (strpos($row_rsChoice['color'], 'Amber') !== false) {?>selected="selected"<?php } ?>>Amber</option>
<option value="Grey" <?php if (strpos($row_rsChoice['color'], 'Grey') !== false) {?>selected="selected"<?php } ?>>Grey</option>
<option value="Hazel" <?php if (strpos($row_rsChoice['color'], 'Hazel') !== false) {?>selected="selected"<?php } ?>>Hazel</option>
	                          </select>

Reply to this topic