Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/11/2008, 23:07
Avatar de Fernand0
Fernand0
 
Fecha de Ingreso: septiembre-2005
Ubicación: Buenos Aires
Mensajes: 610
Antigüedad: 18 años, 7 meses
Puntos: 19
Respuesta: ayuda con parametros de form variables

Código HTML:
<input type="text" id="s" name="q" value="" /> 
<input name="search_in" type="radio" onChange="changeto('q');">Google
<input name="search_in" type="radio" onChange="changeto('s');">SoftwareP2P
Código PHP:
function changeto(type)
{
var 
inp=document.getElementById('s');
inp.name=type;