Did you try giving it an actual file path, not a directory (which is in itself a re-direction)?
(print $in->redirect("http://www.yourdomain.com/index.html")) or (return &error ("Page not found: $id"));
I'm _NOT_ sure you want to _AND_ the return.
Once you "print" the output, and redirect to a new page, you want to end processing, rather than return. You'd only want to return if you were unable to print or redirect for some reason... ie: the left side was "FALSE" so the right side of the OR had to be evaluated for a TRUE.
Does someone know for sure? (I've hated logic since High School!)
http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/
(print $in->redirect("http://www.yourdomain.com/index.html")) or (return &error ("Page not found: $id"));
I'm _NOT_ sure you want to _AND_ the return.
Once you "print" the output, and redirect to a new page, you want to end processing, rather than return. You'd only want to return if you were unable to print or redirect for some reason... ie: the left side was "FALSE" so the right side of the OR had to be evaluated for a TRUE.
Does someone know for sure? (I've hated logic since High School!)
http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/