When handling multiple select fields in a form, the name attribute should end with ________ to ensure all selected values are sent to the server.

  • '[]'
  • '*'
  • '+'
  • 'multiple'
To ensure all selected values are sent to the server, the name attribute should end with '[]' for multiple select fields. This tells PHP to treat the data as an array.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *