Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Recommend It Mod, will it work with Links SQL ?

(Page 2 of 2)
> >
Quote Reply
Re: Recommend It Mod, will it work with Links SQL ? In reply to
Thanks so much for your help! This script is great. i don't really care that it is messy as long as it works. I have one question for you. I am trying to use the "Category" field in the email but it won't recognize the field. Do you know why?

Thanks.
Quote Reply
Re: Recommend It Mod, will it work with Links SQL ? In reply to
Yep....

A little logic bug.

In the subroutine:

sub site_html_recc_success {

Make the last

"print $output;"

to:

"return $output;"


The reason is that with the "print" the subroutine returns a '1' indicating success, and the program should end. That works when the output of the form is the "last" thing you want to do --- ie: in the input form.

But, since we want the option of post-processing (sending the user somewhere else) with this form, "return" it and the program will generate it's own "1" for success on termination.

I _think_ that's what happening, but changing the "print" to "return" fixes it Smile

I've fixed up all the files.




> >