I'm new to arrays, and I'm having trouble with the results of a group of checkboxes on a form I've created. The form has various different types of validation, and if it detects an error, it refreshes using $PHP_SELF and displays a message saying what field is missing (for example).
My problem is that when the refresh happens, the values that were already entered before the error checking began are lost. I've managed to correct this by capturing and re-displaying the values the form is passing in every single case except for the check boxes, as they use an array to pass their values.
This is the input code for one of the checkboxes:
<INPUT TYPE=\"checkbox\" NAME=\"info_request[]\" VALUE=\"Media Kit\">
What I want to be able to do is search through $info_request and see if "Media Kit" has been submitted or not. (I could do this with either the value or the key). I want to take that 'yes/no' outputted as a variable that would then place a 'CHECKED' or a '' in the INPUT tag on refresh, to preserve the chosen value.
Any ideas?