<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Try looking at a dispatch table. That way you can dispatch to a page
based on your parameters.<br>
<br>
>From Wikikpedia (<a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Dispatch_table">http://en.wikipedia.org/wiki/Dispatch_table</a>)<br>
<br>
<pre><code xml:lang="perl" lang="perl">#define the table using one anonymous code-ref and one named code-ref
my %dispatch = (
"-h" => sub { print "hello\n"; },
"-g" => \&say_goodbye
);
sub say_goodbye {
print "goodbye\n";
}
#fetch the code ref from the table, and invoke it
my $sub = $dispatch{$ARGV[0]};
and this: <a class="moz-txt-link-freetext" href="http://dren.ch/perl_dispatch_tables/">http://dren.ch/perl_dispatch_tables/</a>
Hope that helps!
print $sub ? $sub->() : "unknown argument\n";
</code></pre>
<br>
<br>
ken uhl wrote:
<blockquote cite="mid:48530A68.6060105@berkeley.edu" type="cite">
<pre wrap="">Hi, my Forms are not "acting" nicely, page to page flow is not correct,
Page one prompts for search criteria:
...
$scriptname = $q->script_name();
...
<FORM METHOD="post" ACTION="${scriptname}">
...
<INPUT TYPE=submit NAME="select" VALUE="Select Record(s) to Delete">
....
The submit button goes nicely to second page results.
Second page :
Dispplays table of results, and buttons to do bulk delete, which
should retrieve selected check box values:
$scriptname = $q->script_name();
...
<FORM METHOD="post" ACTION="${scriptname}">
...
<INPUT TYPE="submit" VALUE="bulk_delete" NAME="Bulk Deleter" >
This goes back to page one.
I want it to continue - checking page params - specifically to retrieve
selected check boxes,
but It does not progress.
Any Help would be greatly appreciated .
Ken Uhl
UC Berkeley.
_______________________________________________
SanFrancisco-pm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a>
</pre>
<pre wrap="">
<hr size="4" width="90%">
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 270.3.0/1501 - Release Date: 6/13/2008 6:33 AM
</pre>
</blockquote>
</body>
</html>