I am creating a table dynamically (with values obtained from database ) with code as below, In each row of a table in the last field a "Reserve" button is present.
When the user clicks the reserver button the form calls another perl file, but i am not able to post the data in first field of the row, where the Reserve button was, to the perl file.
I know i am doing something wrong,but there must be a way to do it. I think when i create the table i should do something to assign value so that i can pass the data when the button is clicked.
print " <tr> ";
print " <td align=\"right\" valign=\"top\"> " . $fname1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $fip1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $ftip1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $fworkstation1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $fteam1 . "</td> ";
if ($ftester1 eq "" ) {
print " <td align=\"right\" valign=\"top\"> <INPUT type=\"submit\" value=\"Reserve\"> </td> ";
} else {
print " <td align=\"right\" valign=\"top\"> " . $ftester1 . "</td> ";
}
print " </tr> ";
When the user clicks the reserver button the form calls another perl file, but i am not able to post the data in first field of the row, where the Reserve button was, to the perl file.
I know i am doing something wrong,but there must be a way to do it. I think when i create the table i should do something to assign value so that i can pass the data when the button is clicked.
print " <tr> ";
print " <td align=\"right\" valign=\"top\"> " . $fname1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $fip1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $ftip1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $fworkstation1 . "</td> ";
print " <td align=\"right\" valign=\"top\"> " . $fteam1 . "</td> ";
if ($ftester1 eq "" ) {
print " <td align=\"right\" valign=\"top\"> <INPUT type=\"submit\" value=\"Reserve\"> </td> ";
} else {
print " <td align=\"right\" valign=\"top\"> " . $ftester1 . "</td> ";
}
print " </tr> ";