I want using the data below, generate a table:

header=['roll', 'name', 'absent']

data=[['1', 'aaaa'], ['2', 'bbbb'], ['3', 'cccc'], ['4', 'dddd']]


<table width="200" border="1">
<tr>
<th scope="col">Roll</th>
<th scope="col">Name</th>
<th scope="col"><p>Absent</p>
<p>
<label>(
<input type="checkbox" name="absentall" id="absentall" />
</label>
All)</p></th>
</tr>
<form id="form1" name="form1" method="post" action="">
<tr>
<td>1</td>
<td>aaaa</td>
<td>
<input type="checkbox" name="1" id="absent" />
</td>
</tr>
<tr>
<td>2</td>
<td>bbbb</td>
<td><input type="checkbox" name="2" id="absent" /></td>
</tr>
<tr>
<td>3</td>
<td>cccc</td>
<td><input type="checkbox" name="3" id="absent" /></td>
</tr>
<tr>
<td>4</td>
<td>dddd</td>
<td><input type="checkbox" name="4" id="absent" /></td>
</tr>

</table>
<input type="submit" name="submit" id="submit" value="Submit" />
</form> 

Reply via email to