Gossamer Forum
Home : Products : DBMan : Customization :

Redirection ????

Quote Reply
Redirection ????
Dear Forum,
When people search for a URL which are stored in a database i want to redirect then directly to the website (as the result of the search). Is this possible, can some help me.

PS. As search results i recieve the hole record, i want to recieve the URL only.

Thx.

Theo


Quote Reply
Re: Redirection ???? In reply to
First, please post questions in just one forum.

Can you guarantee there will be only one record returned from the search? If so, you can change sub html_view_success to

Code:

sub html_view_success {
# --------------------------------------------------------
# This page displays the results of a successful search.

my (@hits) = @_;
%rec = &array_to_hash($_, @hits);
print "Location: $rec{URL}\n\n";
}
JPD
http://www.jpdeni.com/dbman/