I have a table like code html belows
I want to store value of check box and corresponding text value into 2 array in PHP
For example
if i check box ID_1, ID_2
the values of these check box are stored in $array_box ( 74, 75)
and values of corresponding text box are stored in $array_text ("iOS","Android")
Do you have any idea? thank you very much
<table width="341" border="1">
<tr>
<th width="20" scope="row"><input name="target" type="checkbox" value="74" checked /></th>
<td width="155">ID_1</td>
<td width="144"><form id="form1" name="form1" method="post" action="">
<label>
<input type="text" name="os[]" id="os" value="iOS" />
</label>
</form></td>
</tr>
<tr>
<th scope="row"><input name="target" type="checkbox" value="75" checked /></th>
<td>ID_2</td>
<td><form id="form2" name="form1" method="post" action="">
<label>
<input type="text" name="os[]" id="os2" value="Andoird"/>
</label>
</form></td>
</tr>
<tr>
<th scope="row"><input name="target" type="checkbox" value="76" checked /></th>
<td>ID-3</td>
<td><form id="form3" name="form1" method="post" action="">
<label>
<input type="text" name="os3" id="os3" value="Beta" />
</label>
</form></td>
</tr>
<tr>
<th scope="row"><input name="target" type="checkbox" value="77" checked /></th>
<td>ID-4</td>
<td><form id="form4" name="form1" method="post" action="">
<label>
<input type="text" name="os[]" id="os4" value="Window" />
</label>
</form></td>
</tr>
</table>