i sort of think it has to do with calling the same template in site_html_modify_form..
it should be modify_form.html instead of modify.html..
a lot of people get this error.. i'm sorry i didn't put that in the instructions.. it is a little thing that i forgot..
hope you like the mod.. there are a few new things that i did to it that those files were not updated with.. such as..
in both add.cgi and modify.cgi..
Code:
if (! defined $USER) {
print $in->redirect("$LINKS{db_cgi_url}/user.cgi?to=$ENV{'SCRIPT_NAME'}") and return;
}
to
Code:
if (! defined $USER) {
my $encurl = "$ENV{'SCRIPT_NAME'}?$ENV{'QUERY_STRING'}";
$encurl =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%
02x",ord($1))/eg;
print $in->redirect("$LINKS{db_cgi_url}/user.cgi?to=$encurl") and return;
}
this simply allows all the inputs to be passed to and back to modify.cgi and add.cgi after the login..
for example.. if the user goes to modify.cgi?ID=1.. in the old version.. after logging in.. it would go to modify.cgi and list all the links the owner has.. in the new version.. if the user owns the link, it will go to the form to edit the link..
also.. it should work if the user some reason logged out or session expired before he submits the form.. so instead of making him type it over after login.. it will return the success page if all inputs are valid..
sorry i didn't put this mod in the resource center.. i don't put many mods there.. i publish them in the forum usually..
also.. i hope to see alex's version of this in the new version.. my guess is he will be having something similiar..
Jerry Su email@jerrysu.com http://www.jerrysu.com/