All,
I have the following hidden variables:
<input type="hidden" name="chk[10]" value = "cats">
<input type="hidden" name="chk[13]" value = "dogs">
<input type="hidden" name="chk[14]" value = "fish">
I want to get these variables through POST and print them. How can I do this in PHP?
Thanks
foreach($_POST['chk'] as $key => $value) {
echo $key, ' => ', $value, '<br />';
}
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