I have a multi-select element and I'm trying to capture the values in it but it's not working and I've got no idea why the value isn't getting passed through to the
The HTML from my template:This is how I'm trying to capture the values in my controller.
This is what the
Any ideas what I'm doing wrong?
$request
variable. I'm sure I'm missing something very simple.The HTML from my template:
Code:
<select name="group_membership[]" id="group_membership" multiple="multiple" size="10">{% for group in GROUPS %}<option value="{{ group.id }}">{{ group.name }}</option>{% endfor %}</select>
Code:
$memberships = $request->variable( 'group_membership', '' );var_dump( $memberships ); die();
var_dump()
is outputting.Code:
/Users/danieltj/Local Sites/phpbb/app/public/ext/danieltj/extension/controller/acp.php:161:string '' (length=0)
Statistics: Posted by danieltj — Wed Jul 24, 2024 8:50 am