Thanks for your reply, mendhak. I'm close to a PHP solution, but I'm trying to clean it up by keeping the value as "EDIT" instead of "EDIT46". I'm also finding out how much of a newb I am at PHP.
How do get name1 and name2 instead of value1 and value2 using the POST method (instead of the GET method)? I thought there is a way to get that. In your example, the question would be how to get the text "id" as a variable name to use as $id in PHP. This code gives me the value instead of the name.
Code:foreach ($_POST as $val){ printf("$val"); } ... printf("<TR> <TD><P ALIGN=\"CENTER\">%s </TD> <TD>%s</TD> <TD>%s</TD> <TD><P ALIGN=\"CENTER\">%s </TD> <TD>%s</TD> <TD NOWRAP><INPUT TYPE=\"SUBMIT\" NAME=\"edit%s\" VALUE=\"EDIT%s\"><INPUT TYPE=\"SUBMIT\" NAME=\"delete%s\" VALUE=\"DELETE%s\" </TR>", $myrow[0], $myrow[3], $myrow[2], $myrow[1], $myrow[4], $myrow[0], $myrow[0], $myrow[0], $myrow[0] );




Reply With Quote