Problem passing "action" parameter from a form

2001-12-18 Thread Kris Seraphine
Hi - first time posting here I want to use one script with multiple functions to process a variety of forms/information. in my script I declare the action variable and give it instructions: # get the action my $ACTION = $Q->param('action') || ""; if ($ACTION eq "check_password") { check_

Re: Problem passing "action" parameter from a form

2001-12-18 Thread fliptop
Kris Seraphine wrote: > I want to use one script with multiple functions to > process a variety of forms/information. > > in my script I declare the action variable and give it > instructions: > > # get the action > my $ACTION = $Q->param('action') || ""; > if ($ACTION eq "check_password") is

Re: Problem passing "action" parameter from a form

2001-12-19 Thread fliptop
[reply cc'd to list] Kris Seraphine wrote: > yes it is. unless you have it spelled wrong in the form, i don't see why it shouldn't be working. try doing this: use CGI; use Data::Dumper; my $Q = new CGI; my $ACTION = $Q->param('action') || ''; print "ACTION: ", Dumper($ACTION); and see what

Re: Problem passing "action" parameter from a form

2001-12-19 Thread Curtis Poe
--- fliptop <[EMAIL PROTECTED]> wrote: > try doing this: > > use CGI; > use Data::Dumper; > my $Q = new CGI; > my $ACTION = $Q->param('action') || ''; > print "ACTION: ", Dumper($ACTION); > > and see what you're getting for $ACTION Perhaps even better would be to do this: print Dumper( $Q