Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Site search script -  from html page?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Site search script - from html page?

 Post Reply Post Reply
Author
steve_stylez View Drop Down
Newbie
Newbie


Joined: 21 July 2003
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote steve_stylez Quote  Post ReplyReply Direct Link To This Post Topic: Site search script - from html page?
    Posted: 21 July 2003 at 3:11am

I want to use the Site search script and have a search box on every page of my site. But I dont want to have to rename every page to .asp

Can the script be 'fed' from a simple text box on an html page. I tried it and get an Object expected line 8 error.

Anyone else done this?
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2003 at 4:10am

all you do is put a field and button and point the form to the Site Search page....

if your site is in html, may i just check you have support for ASP?

anyway you can copy this:

 <form action="/search.asp" method="get" name="search">
 <input type="hidden" name="mode" value="allwords">
    <TABLE  BORDER="0" CELLSPACING="0" CELLPADDING="0" width="100%">
    <TR>
     <TD align="center"><input type="text" name="search" maxlength="50" size="10"></TD>
     <TD align="center"><input type="submit" name="submit" value="Go!"><br></TD>
    </TR>
    </TABLE>
 </FORM>

you will need to edit this to fit it in with your site, but thats about it

i put a hidden feild into do the "all words / any word" thing, if my users want to change it then can do so after searching

you dont have to have the code to do the search on every page, just the one you downloaded and point your other pages to it like i did..

hope this helps

also this was the wrong forum..

the correct forum was "Web Wiz Guides Free Applications" i think

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.