AEE
AEE

Reputation: 11

Multiple select element not submitting to POST array upon form submission

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:

enter image description here

Any idea whats preventing this to be submitted with the rest of the form?

Upvotes: 0

Views: 38

Answers (0)

Related Questions