Hi ,
I am using following script to get the values of the language details.
<FORM action="final.php" method="post">
<div align="center">
<table width="434" border="0">
<tr>
<td>Languages Known</td>
<td>Speak</td>
<td>Read</td>
<td>Write</td>
<td>Delete</td>
</tr>
<tr>
<td>
<select name="lang[]" id="select">
<option value="">-Select-</option>
<option value=1>Hindi</option>
<option value=2>English</option>
<option value=3>Tamil</option>
<option value=4>Telugu</option>
<option value=5>Kannada</option>
</select></td>
<td><input name="speak[]" type="checkbox" value="yes" /></td>
<td><input name="read[]" type="checkbox" value="yes" /></td>
<td><input name="write[]" type="checkbox" value="yes" /></td>
<td><input type="button" name="button" id="button" value="Delete" onclick="delete(this)" /></td>
</tr>
<tr>
<td>
<select name="lang[]" id="select">
<option value="">-Select-</option>
<option value=1>Hindi</option>
<option value=2>English</option>
<option value=3>Tamil</option>
<option value=4>Telugu</option>
<option value=5>Kannada</option>
</select></td>
<td><input name="speak[]" type="checkbox" value="yes" /></td>
<td><input name="read[]" type="checkbox" value="yes" /></td>
<td><input name="write[]" type="checkbox" value="yes" /></td>
<td><input type="button" name="button2" id="button2" value="Delete" onclick="delete(this)" /></td>
</tr>
<tr>
<td>
<select name="lang[]" id="select">
<option value="">-Select-</option>
<option value=1>Hindi</option>
<option value=2>English</option>
<option value=3>Tamil</option>
<option value=4>Telugu</option>
<option value=5>Kannada</option>
</select></td>
<td><input name="speak[]" type="checkbox" value="yes" /></td>
<td><input name="read[]" type="checkbox" value="yes" /></td>
<td><input name="write[]" type="checkbox" value="yes" /></td>
<td><input type="button" name="button3" id="button3" value="Delete" onclick="delete(this)" /></td>
</tr>
<tr>
<td>
<select name="lang[]" id="select">
<option value="">-Select-</option>
<option value=1>Hindi</option>
<option value=2>English</option>
<option value=3>Tamil</option>
<option value=4>Telugu</option>
<option value=5>Kannada</option>
</select></td>
<td><input name="speak[]" type="checkbox" value="yes" /></td>
<td><input name="read[]" type="checkbox" value="yes" /></td>
<td><input name="write[]" type="checkbox" value="yes" /></td>
<td><input type="button" name="button4" id="button4" value="Delete" onclick="delete(this)" /></td>
</tr>
<tr>
<td>
<select name="lang[]" id="select">
<option value="">-Select-</option>
<option value=1>Hindi</option>
<option value=2>English</option>
<option value=3>Tamil</option>
<option value=4>Telugu</option>
<option value=5>Kannada</option>
</select></td>
<td><input name="speak[]" type="checkbox" value="yes" /></td>
<td><input name="read[]" type="checkbox" value="yes" /></td>
<td><input name="write[]" type="checkbox" value="yes" /></td>
<td><input type="button" name="button5" id="button5" value="Delete" onclick="delete(this)" /></td>
</tr>
</table>
</div>
<div align="center">
<input name="s" type="submit" />
</div>
</FORM>
</body>
I have selected form like this
English Speak
Hindi Read
Tamil Write
*
I am getting the $_POST array as
Array ( [lang] => Array ( [0] => 2 [1] => 1 [2] => 3 [3] => [4] => ) [speak] => Array ( [0] => yes ) [read] => Array ( [0] => yes ) [write] => Array ( [0] => yes ) [s] => Submit Query )
From this I am getting result for first row as
Languages Known Speak Read Write Delete
English yes yes Yes
Hindi
Tamil
I have tried by changing the speak,read and write array as
speak1[],read1[],write1[] for first row
speak2[],read2[],write2[] for second row
But It will affect the result while deleting rows.
Please help me to find a solution for this