Is there some kind of wildcard I can use to create POST vars that start with a specific string?
Essentially, I am trying to capture any POST that contains bSortable_(wildcard) as the name.
bSortable_1 bSortable_2 bSortable_3
I am doing this for a library jquery datatables.
http://www.datatables.net/usage/server-side
Get post variables to an array, than iterate through it while you filter.
foreach($_POST as $key => $value) {
$pos = strpos($key , "bSortable_");
if ($pos === 0){
// do something with $value
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With