I am the using the mod below to send users who sign-up for the first time to the add_form page.
The problem I am having is: the users are being sent to the add_form page everytime they log in. I thought this mod was suppose to send them to the main page after they had add their record already.
####### sends user to add_form after they sign up and login for the first time - #####
unless ($per_admin) {
$in{'Userid'} = $db_userid;
my ($status, @hits) = &query("mod");
undef %in;
unless ($status eq 'ok') {
&html_add_form;
return;
}
}
##########
The problem I am having is: the users are being sent to the add_form page everytime they log in. I thought this mod was suppose to send them to the main page after they had add their record already.
####### sends user to add_form after they sign up and login for the first time - #####
unless ($per_admin) {
$in{'Userid'} = $db_userid;
my ($status, @hits) = &query("mod");
undef %in;
unless ($status eq 'ok') {
&html_add_form;
return;
}
}
##########