Skip to content
Advertisement

Multiple selection options for html and php

I’m hoping someone can assist me. I’m trying to allow a multiple selection on a webpage via PHP, but whilst the list is showing, I cannot get the HTML to call the multiple option.

PHP:

JavaScript

And the HTML being called:

JavaScript

As you can see, the name is getting the [] multi-select feature, but the multiple=’multiple’ is missing. I don’t know where I’m going wrong.

Thanks,

Advertisement

Answer

<select name="property_feature[]" multiple="multiple"> you can get multi-value from select property

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement