I am trying to send form data from pre_uninstall to uninstall.
# -----------------------------------------------------------------------------
my $opts = Links::Plugins->get_plugin_user_cfg('myPlugin');
my $uninst_msg = qq~
<INPUT type="checkbox" name="del_customtable" checked="checked">
~;
return $uninst_msg;
}
Then in sub uninstall I have this which doesn't work <g>. $IN->param is empty.
my $editor = $DB->editor('myTable');
if($IN->param('del_customtable')) {
$editor->drop_table("remove");
}
So, how do I get the form values once in uninstall?
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Code:
sub pre_uninstall { # -----------------------------------------------------------------------------
my $opts = Links::Plugins->get_plugin_user_cfg('myPlugin');
my $uninst_msg = qq~
<INPUT type="checkbox" name="del_customtable" checked="checked">
~;
return $uninst_msg;
}
Then in sub uninstall I have this which doesn't work <g>. $IN->param is empty.
Code:
my $opts = Links::Plugins->get_plugin_user_cfg('myPlugin'); my $editor = $DB->editor('myTable');
if($IN->param('del_customtable')) {
$editor->drop_table("remove");
}
So, how do I get the form values once in uninstall?
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com