The form is working now. I'm not sure if it's blocking submissions with no IP address. I don't know how to block mine to test it, but I'll know in a day or so as I go through the submissions.
Here's what I ended up with:
Code:
use strict;
use CGI::Carp qw(fatalsToBrowser);
use lib '/usr/www/virtual/cybmktz/www.domain.com/cgi-bin/admin';
use Links qw/$IN $CFG $PLG/;
use Links::User::Add;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/usr/www/virtual/cybmktz/www.domain.com/cgi-bin/admin');
Links::init_user();
if (!$ENV{'REMOTE_ADDR'}) {
print $IN->header();
use Links::SiteHTML;
print Links::SiteHTML::display('error', { error => qq|Sorry, you don't seem to be showing your IP. This blockage is in place to ensure our system isn't inundated by people spamming our directory.|, } );
exit;
}
if (GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'check_request', \&Links::check_request)) {
GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'handle_add', \&Links::User::Add::handle);
}
I'm using version 3.2.0
Thanks for all the help.