I imagine processing it is a simple matter of chugging through an array, like any other array, and making sure each criteria matches its respective counterpart.
Does passing an array from a form to the platform propose any security risks or side effects that passing each parameter does not?
Code: Select all
$post_data = array(
'post_subject' => $post_data['post_subject'],
'post_message' => $post_data['post_message'],
'post_disable_bbcode' => $post_data['post_disable_bbcode'],
Then change the submit_post function from having each of those criteria seperated into one large array of data to be sorted out by the function later.