Gossamer Forum
Home : Products : Gossamer Links : Discussions :

2 x LinksSQL and 2 x Servers

Quote Reply
2 x LinksSQL and 2 x Servers
I have 2 different websites on 2 different servers and domains. (just in case you wonder, both have seperatly paid licences! Wink)


Is there anyway to make it possible to search both their databases from each site or one of the sites?

Could I have a search with a dropdown menu / select menu with 2 options.

Option 1 - Search the server and domain the visitor is currently on.
Option 2 - Search the other / remote server and domain which the visitor is NOT on.

Is there anyway for a form or select box to specify what URL / search location or database to use?

Thanks
Quote Reply
Re: [demon] 2 x LinksSQL and 2 x Servers In reply to
Depends on how you want to do it really. I would write an intermeritory script, say;

http://www.mysite.com/search.cgi?type=foo&query=test

Inside that script, I would put a few 'if' statements, which would then check to see what the user wants to search for. It would then redirect them accordingly, i.e;

http://www.myothersite.com/cgi-bin/links/search.cgi?query=test
or
http://www.myothertestsite.com/cgi-bin/clipart/search.cgi?query=test
or
http://www.foobarcom.com/cgi-bin/links/search.cgi?query=test

So, in short... point your search forms to a TOTALLY SEPERATE search.cgi (custom) script, which would then redirect accordingly (or show the appropriate HTML) to the correct search.cgi script Smile

Hope that makes sense :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!