sending a variable
Posted: Wed Dec 03, 2008 12:44 pm
Hi all,
I have the following,
It extracts data from the database, and prints a command button at the end of each row. When I click the button I would the item selected to be displayed on another page any one know now to do this?
Regards.
I have the following,
Code: Select all
//get values post data to update.php
printf("<form action=\"%s\" method=\"%s\">\n", 'viewProgram.php', 'post');
while ($row = mysql_fetch_row($result))
{
printf("id " . $row[0]);
printf(" Channel:" . $row[1]);
printf(" Program:" . $row[2]);
printf(" Time:" . $row[3] . " ");
printf("<input type=\"submit\" name=\"mysubmit\" value=\"View Comments\" />");
printf("<br/><br/>");
}
print "</form>";
?>
Regards.