Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/08/2010, 16:05
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 9 meses
Puntos: 310
Respuesta: botón en formularios

Como solución posible es, pero eso gasta espacio a lo tonto, porque tiene que hacer dos páginas iguales por culpa de un botón... Yo lo haría así:
Código Javascript:
Ver original
  1. function noEnviar(btn, btn2){
  2.  document.getElementById(btn).disabled = true;
  3.  document.getElementById(btn2).disabled = true;
  4. }
Código HTML:
Ver original
  1. <input type='submit' id='last' value='Last' onclick="noEnviar('save', 'next');" />
  2. <input type='submit' id='save' value='Save' onclick="noEnviar('last', 'next');" />
  3. <input type='submit' id='next' value='Next' onclick="noEnviar('save', 'last');" />

Al estar disabled no se envía.
Saludos :D
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red