View Full Version : Making A MSN Site Search Script (Needs Tweaking)

01-27-2005, 03:29 PM
ok guys, i know google have a script that you can place on your website that allows you to let your visitors search your site, but google has not fully indexed my site, so it is no good. But MSN have. They currently dont offer the same script so I tried to make my own. They support a "site:mysite.com" function which allows you to search the contents of a site, and this is what i'm trying to work around.

I currently have this script that I made before.

<form method="GET" action="http://search.msn.com/results.aspx">
<p><input type="text" name="q" size="20"><input type="submit" value="Submit" name="T1"><input type="reset" value="Reset" name="B2"></p>
<p><input type="radio" checked name="q">Search MSN</p>
<p><input type="radio" name="q" value="site:codingforums.com">sitesearch</p>

The search work if you are just doing a general search through MSN, but when you click the site search option it tends to jus display every page from coding forums, and not the keyworks + codingforums.com.

I hope this is not too confureing and hope someone can help me on this.

One more thing, if its possible, can i have a my own results page? I know this is not going to be possible in javascript, but maybe in PHP?

Thanks for all your time and effort.

Anthony :thumbsup:

01-28-2005, 10:13 AM
Can anyone help me on this?

Need this like yesterday, lol.


01-28-2005, 10:17 AM
The first thing I notice is that your text field and radio buttons share the same name. Is that intentional?

Have you checked MSN Search to see if they have a public API for developers?

01-28-2005, 06:35 PM
Thanks, i looked around the site, and found a script ready made to add straight into my site :o