PDA

View Full Version : Help - layer search?!



BrackoNe
02-13-2005, 11:44 AM
Hello,

I makeing a web site and I trying to make a little search engine.
I allready made on right side of site a search form (textbox and button), but I don't know how to link my search form with zoom search engine.
I was in FAQ and I found something but I still can't link. Site is in HTML format.

May somebody PLEASE help me?
If there is a way, I can send on few days that one page of my site and somebody (if can) please make this for me.

This page look like this:
http://web5.box113.rx-dns.de/slike/searchPSS.jpg

wrensoft
02-13-2005, 08:36 PM
From the Zoom users guide,
http://www.wrensoft.com/ftp/zoom.pdf

The HTML code for your form needs to look something like,

<form method="GET" action="search.php">
<input type="text" name="zoom_query" size="10">
<input type="submit" value="Search">
</form>

Please change “search.php” in the above HTML to the appropriate search page: that is, “search.asp” for ASP users, “search.cgi” for CGI users, and “search.html” for JavaScript users.

Note also, the relative location of the search script from where this HTML is placed (eg. if the form is used in a page that is one directory down from the search script, you would need to link to “../search.php”).

Alternatively, you can use an absolute path to the search script (so that no matter where you place the above HTML, it will still find the file), for example:

<form method="GET" action="http://www.mysite.com/search.php">
...
</form>

-------
David

BrackoNe
02-14-2005, 07:15 AM
Ok that is ok, but then I have new form, my "Submit button" is image.
I need on image to add function of button.
I have code like that:


<form>
<td width="128"><div align="center">
<form method="GET" action="search.html">
<input type="text" name="zoom_query" style="border&#58;1px solid #80B4CF; width&#58; 110px; font-size&#58;11px; height&#58;18px; background&#58;#D8ECF6;" size="20"/>
</div></td>
<td width="52">
<input type=image src="images/right_search.jpg" name="submit" width="55" height="15"></td>
</tr>
</form>

When I make new form that is ok.

http://web5.box113.rx-dns.de/slike/bettersearch.jpg

wrensoft
02-14-2005, 09:22 AM
Have a look at these FAQ questions,
http://www.wrensoft.com/zoom/support/faq_howto.html

In particular the questions,
Q. How do I modify the appearance of the search form?

and
Q. How do I put search forms on different pages of my website? (Or define my own search form?)

----
David
Wrensoft