I wish to pass an array of arbitrary content via a hidden field in a form which uses the POST method
$targets = any old array; ... build form to include ... <input type=hidden id=targets title=targets name=_targets value=\"".htmlspecialchars( serialize( $targets ))."\">
Clearly this requires some use of the htmlspecialchars() or related wrapper functions but I am darned if I can figure out a combination which is guaranteed to work for an array of arbitrary content.
Any help appreciated & I can readily figure out how to unserialize($_POST) from your reply