Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); my $q = new CGI; print header(); print <<HTML; <div style="width: 750px;"><form name="form" method="get" action="get_ +data_rows.pl"> <table class="GridView" id="GridView1" style="border-collapse: col +lapse;" rules="all" border="1" cellspacing="0"> <tbody> <tr class="Pink"> <th scope="col" align="left">Select All <span title="Click here to select/deselect all + rows"> <input id="" name="ctl0" type="checkbox"></sp +an> </th><th scope="col">Company Name</th><th scope="c +ol">City</th><th scope="col">Country</th> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl1" type="checkbox"> </td><td>Alfreds Futterkiste</td><td>Berlin</td><t +d>Germany</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl2" type="checkbox"> </td><td>Ana Trujillo Emparedados y helados</td><t +d>México D.F.</td><td>Mexico</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl3" type="checkbox"> </td><td>Antonio Moreno Taquería</td><td>México D. +F.</td><td>Mexico</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl4" type="checkbox"> </td><td>Around the Horn</td><td>London</td><td>UK +</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl5" type="checkbox"> </td><td>Berglunds snabbköp</td><td>Luleå</td><td> +Sweden</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl6" type="checkbox"> </td><td>Blauer See Delikatessen</td><td>Mannheim< +/td><td>Germany</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl7" type="checkbox"> </td><td>Blondesddsl père et fils</td><td>Strasbou +rg</td><td>France</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl8" type="checkbox"> </td><td>Bólido Comidas preparadas</td><td>Madrid< +/td><td>Spain</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ctl9" type="checkbox"> </td><td>Bon app'</td><td>Marseille</td><td>France +</td> </tr><tr title="Click to toggle the selection of this row"> <td> <input id="" name="ct20" type="checkbox"> </td><td>Bottom-Dollar Markets</td><td>Tsawassen</ +td><td>Canada</td> </tr> </tbody></table> <input name="ct" value="Submit your Changes" onclick="return C +onfirm();" type="submit"> <span id="Status"></span></form> </div> HTML ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Select data rows from a grid with Perl
by jasonk (Parson) on Dec 23, 2008 at 19:58 UTC | |
by Anonymous Monk on Dec 23, 2008 at 20:25 UTC | |
by Anonymous Monk on Dec 23, 2008 at 20:42 UTC | |
by u671296 (Sexton) on Dec 24, 2008 at 00:41 UTC |