Implode Form Element Array


/ Published in: JavaScript
Save to your folder(s)

I frequently pass an array of elements from an HTML form to PHP, normally a list of checkboxes for removing database records. This will loop through an array of checkbox's with the same name & build a delimited string from the checked values. After I have the values in a delimited string I normally have a hidden field which holds the string & explode it on the PHP side.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.