Gossamer Forum
Home : Products : Links 2.0 : Customization :

How do you make an external search box work?

Quote Reply
How do you make an external search box work?
Hi!

I want to let people on my site have the option of adding a little search box to their site that will search my site. I tried to do that and make the form "Get" using the url http://www.wsresource.com/links/cgi-bin/search.cgi but that doesn't work. Can someone please help me? I just want other webmasters able to search my site from another site.

Thanks!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: How do you make an external search box work? In reply to
<form action="http://www.wsresource.com/links/cgi-bin/search.cgi" method="GET">

then

<input type=submit value="Search">

that's all you need to do, i'm suprised it did not work, it's working fine for me, maybe you typed the wrong path or something
Quote Reply
Re: How do you make an external search box work? In reply to
It does actually work, but it tells me that I have to enter keywords. It's really weird. That is exactly what the form looks like, it might have been just those two times. I will try it again.

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: How do you make an external search box work? In reply to
did you put a <input type="TEXT" name="query" size="30"> in the form? ya kinda need that to get user input.
--tom
Quote Reply
Re: How do you make an external search box work? In reply to
 

Hey Guys.. Unfortunately, i am not quite as literate as you guys are when it
comes to programming, so could one of you
attach the whole code needed to do the external search-engine to a email for me?
Please save it as a attachment, as EUDORA likes to screw up the code if its in the actual letter...

I would really appreciate the help.
Jeff
totally@bellsouth.net

I would really appreciate it.


Jeff


Quote Reply
Re: How do you make an external search box work? In reply to
Hi,

I've got an example of this on my site at http://207.5.93.160/webtools/searchbox.asp

(The domain name is in the middle of being transferred to this new server, hence the IP address)

I hope it helps,

Actually, while I am on, I made a mod of Widgetz' review mod, so that the reviews are built into the detailed pages rather than dynamically called. Would anyone be interested in this?

Regards,
Andy Peacock
http://www.nlpresources.com


Quote Reply
Re: How do you make an external search box work? In reply to
conan -- it's not that difficult... just give this to people:

Code:
<form action="http://www.yourdomain.com/path/to/your/cgi/directory/search.cgi" method="GET">
<input type="TEXT" name="query" size="30">
<input type=submit value="Search">

and of course, replace the url in the form with your url.

--tom
Quote Reply
Re: How do you make an external search box work? In reply to
You need to clse the form too, so to the above, add:
Code:
...
</form>

John