kenuhl has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I need to write a bulk delete application. I am working with a DNS-DB front end that displays DB Records. We want to make these chaneges:

1) add check boxes to select entries to be deleted.
2) re-display the selected records in a confirmation page
3) Confirmation page either submits changes or cancel

I have added check boxes, each with unique name to match corresonding record - check boxes are named "bulk_delete_host_$hostrow_number" ( where $hostrow_number is database table row id )

Question: How do I make a new confirmation page with just the selected records?

How do I loop through those records ?

Ken
Berkeley

Replies are listed 'Best First'.
Re: handling a list of check boxes
by CountZero (Bishop) on Feb 26, 2008 at 21:25 UTC
    Creating a group of related checkboxes in CGI gives a nice example and full explanations of how to do this.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James