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_password();
exit;
}
elsif ($ACTION eq "add_to_db")
{
add_to_db();
exit;
}
# if there is no action, show the login form and then
quit
elsif ($ACTION eq "")
{
display_login_form();
exit;
}
the action is passed in a hidden field on the form:
<input type="hidden" name="action"
value="check_password">
However, the script keeps passing it like $ACTION=""
and then it goes to the display_login_form()
subroutine.
Can anyone tell me what I may be doing wrong?
Thanks for your help!
Kris Seraphine
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]