Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/08/2010, 10:36
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: enviar valor con <input type="image">

venom_mau:
efectivamente es un bug en IE, tienes dos alternativas para solucionarlo
Código para input_image.php

Código PHP:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es" >
  5. <head>
  6. <title>XHTML 1.0 Strict</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. </head>
  9. <body>
  10. <?php
  11. $fila1 = "valor_fila_uno";
  12. ?>
  13. <form id="uno" method="post" action="input_image.php">
  14. <p>
  15. <!--
  16. <input type="hidden" name="procesar" value="<?php echo "$fila1"; ?>" />
  17. -->
  18. <input type="image" src="imagen.png" alt="" name="enviar" />
  19. <!-- o va el input image con el input hidden o el button, habria que retocarlo con css -->
  20. <button name="procesar" value="<?php echo "$fila1"; ?>" type="submit"><img src="imagen.png" alt="" /></button>
  21. </p>
  22. </form>
  23. <div>
  24. <hr />
  25. <?php
  26. if(isset($_POST['procesar'])){
  27. echo $_POST['procesar'];
  28. }else{
  29. echo "nada";
  30. }
  31. ?>
  32. </div>
  33. </body>
  34. </html>


Creo que usar el input image + un campo hidden con el valor a pasar es más practico, te evitas el css para adaptar el button.
Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.