Forum Moderators: open
<form action="http://mp3.example.com/cgi-bin/search" method="GET">
<table border="0" width="293">
<tr>
<td align="center" width="283" colspan="3">
<b><font color="#FF0000">Mp3 Search:</font></b></td>
</tr>
<tr>
<td align="right" width="88" valign="baseline">
<a href="http://mp3.example.com">
<img src="http://example.com/images/forums.gif" border="0" width="60" height="31"></a>
</td>
<td align="right" width="195" colspan="2">
<input type="text" size="27" name="searchstring" style="background: #CCCCCC url('http://example.com/images/journal.gif')
no-repeat bottom right;border: 1px solid #FF6600">
</td>
</tr>
<tr>
<td align="right" width="88">
<b><font size="2" face="Verdana, Arial">Search by:</font></b>
</td>
<td align="right" width="122">
<input type="radio" name="searchby" value="song"><font size="2" face="Verdana, Arial">Song</font>
<input type="radio" name="searchby" value="artist" CHECKED><font size="2" face="Verdana, Arial">Artist</font>
</td>
<td align="right" valign="top" width="69">
<input type="submit" value="Search" style="border: 1px solid #FF6600;background: #CCCCCC;">
</td>
</tr>
</table>
</form>
Please help me as I know little about this. Thank you.
[edited by: tedster at 3:57 am (utc) on July 3, 2007]
[edit reason] switch actual domain to example.com [/edit]
In this instance, putting the search in a frame or iframe would probably not be bad. I was thinking along the lines of SE's and the affects there. And though I am sure you are aware of this, make sure you are allowed to frame their seach results. You don't want to get in trouble.
The other option is have the results open in a new window. Put target="_blank" in the <form action="get".... target="_blank">
Marshall
I decided I want to do both: have the seach results open in a new browser and frame the results. I am 100% positive that I am allowed to frame the search results; this was taken right off of their website:
"You can even IFRAME the search engine results into your own site to prevent your users from being leaving your site."
I know how to make iframes using Fronpage, but I have no clue how to do so with search engines. Could you please help me with this Marshall? Also, thanks for the code for the seach results to open in a new window. But alas, I cannot try it because my web host is down and has been down for almost 24 hours (now you know why I want to switch to a new web host).
Thank you!
[edited by: tedster at 7:11 pm (utc) on July 4, 2007]
<iframe src="http://www.theothersite.com" height="as-needed" width="as-needed" border="0"></iframe>
The other option that may work is put YOUR search box on a separate page, say page search_box.htm, but DON”T have the results open in a new window. Then, iframe that page:
<iframe src="http://www.yoursite.com/search_box.htm" height="as-needed" width="as-needed" border="0"></iframe>
Since the results would open in the same window as the search box, it may appear in the iframe. If you’re host is still down, I could try to test it on my server. Let me know. In the mean time, if someone has a better solution, I’m all ears.
Londrum has a good point which should be carefully considered.
Marshall
[edited by: tedster at 3:40 am (utc) on July 5, 2007]
The other option that may work is put YOUR search box on a separate page, say page search_box.htm, but DON”T have the results open in a new window. Then, iframe that page:
<iframe src="http://www.yoursite.com/search_box.htm" height="as-needed" width="as-needed" border="0"></iframe>
Worked like a charm.
Marshall
Marshall, thanks again for the help, and I'll try the code tommorrow morning; my server is acting funny and is "having difficulty with Frontpage Server Extensions at the time".
Regardless, glad I could help.
Marshall