html>
<head>
<title>Dynamic Generation</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="marks" action="insertresult11.php" method="post">
Insert Result of the Subject:
<select name="subject">
<?php
for($i=1;$i<=$count1;$i++)
{
?>
<option value="<?php echo $i; ?>"><?php echo $subjects[$i]; ?></option>
<?php
}
?>
</select>
<br><br>
<table width="50%" border="1" bgcolor="#D4D891" align="center">
<?php
for($k=1;$k<=10;$k++)
{
?>
<tr>
<td width="25%">Roll No. : <?php echo $k; ?></td>
<td width="75%"><input type="text" name="mark['<?php echo $k; ?>']"></td>
</tr>
<?php
}
?>
</table>
<input type="submit" name="submit" value="Insert Result">
</form>
</body>
</html>
WHATS WRONG HERE?
here like this my html code and the dynamic listbox is generated and perfact values taken in the list box......but now when i submit the result to the next page how shold i get the selected listboxe's value and how shold i get values of the all textboxes??? as i want to insert the student result fr selected subject.. for the whole class....
anyone helps me plz
i need it very urgently
Thanks in advance.......