Im sure the problem is with this bit:
In the validation, as the "name" of the radio form inputs are thetype[$x][] rather than thetype[] but im not sure how to add the [$x] bit on to validate the correct values!
Code:
foreach($_POST['thetype'] as $key => $value) {
In the validation, as the "name" of the radio form inputs are thetype[$x][] rather than thetype[] but im not sure how to add the [$x] bit on to validate the correct values!