Código PHP:
<form name="searchForm">
<input type="text" name="searchword2">
<input type="radio" name="radio" value="1">
<input type="radio" name="radio" value="2">
<input type="submit" value="buscar" onclick="buscar()"
Código PHP:
<script language="JavaScript">
<!--
function buscar(){
searchString = document.searchForm.searchword2.value;
if(document.searchForm.radio[0].checked){
location.href = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString;
}
if(document.searchForm.radio[1].checked){
location.href = "http://av.yahoo.com/bin/query?p=" + searchString + "&hc=0&hs=0";
}
}
// -->
alguna ayuda??