admin管理员组文章数量:1287137
I'm having an issue with a form element that wont submit when the post request is submitted. I'm populating the elements of the listbox from an array that is prepared from some php code.
I'm using a similar form on a different page that doesnt have the elements auto populated, but instead uses Javascript to move the elements from another listbox over to this one, and it works fine. It appears something with the php code that populates the elements is causing the issue. Code below:
<div class="select-group">
<label for="listbox2">Assigned to User:</Label>
<select name="assigned-properties[]" id="listbox2" class="listbox" multiple>
<?php foreach ($arrAuthProp as $output) { ?>
<option value="<?php echo htmlspecialchars($output['property_id']); ?>"><?php echo htmlspecialchars($output['prop_dba_name']); ?></option>
<?php }; ?>
</select>
</div>
The way the code shows up once in the browser is below:
Any idea whats preventing this to be submitted with the rest of the form?
本文标签: phpMultiple select element not submitting to POST array upon form submissionStack Overflow
版权声明:本文标题:php - Multiple select element not submitting to POST array upon form submission - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741294360a2370730.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论