I don't understand.
There are the things you need to do.
In your for loop, build form buttons that submit the
appropriate rowid to your target URL
In the CGI which recieves the form submission, use
use the CGI module, get a CGI object $foo, and call
$foo->param("fieldname"). You get whatever was passed
as the value of that field, or undef if nothing was
passed
Act accordingly
I'd be happy to help further, if you tell me exactly which
step you'd like help on. Cya