I have a form that consists of textbox, radio button and checkboxes. this is the code:
<tr>
<td><input type="checkbox" name="p_language[]" value="English" /> English<br /></td>
<td><input type="checkbox" name="p_language[]" value="Chinese" /> Chinese </td>
</tr>
...
more
It's in a table so it's nicely arranged. So total I have like 8 languages.
then my php file is trying to get the form values, other fields all work fine except the checkbox. I am only getting the last value. For example:
I check English, chinese and Spanish. When I print the language it's only spanish.
Language: <?php print_r($_REQUEST["p_language"]); ?>
I am not sure what is wrong here, somebody please help?