Показать сообщение отдельно
Старый 11.12.2003, 17:02     # 3
Слепой@Пью
Guest
 
Сообщения: n/a

Ааа...сорри... точно, это PHP, совсем запарился, видно...
Но все равно, вот задачка (JS - точно! + HTML) - надо перебросить пользователя на поисковый сервер c готовым результатом поиска:

<html>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<head>

<script language="JavaScript">
var FirstForm;
function StartSearch()
{
document.forms[FirstForm+document.InputForm.SearchSelect.[Next Line]
selectedIndex].elements[0].value=document.InputForm.SearchWords.value;
document.forms[FirstForm+document.InputForm.SearchSelect.[Next Line]
selectedIndex].submit();
}
</script>

</head>
<body>
<form Name="InputForm">
Search For: <input name="SearchWords" type=text size=30>
Search Engine: <select Name="SearchSelect">
<option selected> Rambler
<option>Yahoo
<option>Altavista
<option>Excite
<option>Lycos
</select>
<input name="submit" type=button onClick="StartSearch()" value="Search !">
<br>
</form>

<script language="JavaScript">FirstForm=document.forms.length</script>

<form action="http://www.rambler.ru/cgi-bin/rambler_search" method=get>
<input type="hidden" name="words" size="9">
</form>

<form action="http://search.yahoo.com/bin/search" method=get>
<input type="hidden" size=35 name=p>
</form>

<form action="http://www.altavista.digital.com/cgi-bin/query" method=get>
<input type="hidden" name=q size=35 maxlength=200 value="">
<input type="hidden" name=pg value=q>
<input type="hidden" name="fmt" value=".">
<input type="hidden" name=what value=web>
</form>

<form action="http://www.excite.com/search.gw" method=post>
<input type="hidden" name="search" size=35>
<input type="hidden" name="searchType" value="Keyword">
<input type="hidden" name="category" value="default" checked>
<input type="hidden" name="mode" value="relevance">
<input type="hidden" name="showqbe" value="1">
<input type="hidden" name="display" value="html3,hb">
</form>

<form action="http://www.lycos.com/cgi-bin/nph-randurl[Next Line]/cgi-bin/largehostpursuit1.html">
<input type=hidden size=35 name="query">
</form>
</body>
</HTML>

Браузер пишет что ошибка на странице - где? Не знаю как найти...