Hey all!
This is perhaps more of a javascript problem, although it's when using it with php.. so I'm hoping someone might know how to help!
I'm using some javascript to add and remove select options from a list in HTML. However, due to php wanting the list to be submitted as an array for multiple select (with []) my javascript is throwing errors..
So basically, I want to make..
onclick="addSelected('form','complete_list','selected_list')
This
onclick="addSelected('form','complete_list','selected_list[]')
But without returning the errors, does anyone know if there's a way of putting backslashes with the [] or something similar to ignore them? (that doesn't work by the way!).
Any help would be greatly appreciated ; although, I appologise for this not being an entirely PHP question.. hope someone can help still!
Thanks