I want to add a field on the Bad Links plugin so the surfer can type in a reason that they are reporting the link as bad.
I added the field to the table (Reason), I added the input text box to the template and it's showing up on the confirm page, but I can't figure out how to get the data into the database. I assume it's done on the bad_link.cgi page somewhere around this part
URL => $rec->{'URL'},
Title => $rec->{'Title'},
IP => $ENV{'REMOTE_ADDR'}
} );
but I don't know the proper syntax.
Can anyone help?
Thanks in advance.
I added the field to the table (Reason), I added the input text box to the template and it's showing up on the confirm page, but I can't figure out how to get the data into the database. I assume it's done on the bad_link.cgi page somewhere around this part
Code:
$db_bad_links->add ( { LinkID => $id, URL => $rec->{'URL'},
Title => $rec->{'Title'},
IP => $ENV{'REMOTE_ADDR'}
} );
but I don't know the proper syntax.
Can anyone help?
Thanks in advance.