Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/07/2009, 12:58
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 6 meses
Puntos: 139
Respuesta: Problema enviando un formulario

No se si resolviste
Pero tengo una opcion.



Código Code:
Ver original
  1. <?php
  2.  
  3. if(isset($_POST['nombre'])){
  4. echo $_POST['nombre'];
  5. }
  6.  
  7. ?>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  9. "http://www.w3.org/TR/html4/loose.dtd">
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <title>Demo</title>
  14.  
  15. <script>
  16.  
  17.  
  18. function enviar(){
  19.  
  20. formulario.submit();
  21.  
  22. }
  23.  
  24. </script>
  25. <style type="text/css">
  26. <!--
  27. .btnSend {
  28.     background-color: #0099CC;
  29.     width: 122px;
  30.     text-decoration: none;
  31.     font-weight: bold;
  32.     color: #FFFFFF;
  33.     height: 22px;
  34.     border: 1px solid #0066CC;
  35.     padding-top: 0em;
  36.     padding-right: 2em;
  37.     padding-bottom: 0em;
  38.     padding-left: 2em;
  39.     text-align: center;
  40.     cursor:pointer;
  41. }
  42. -->
  43. </style>
  44. </head>
  45.  
  46. <body>
  47.  
  48.  
  49. <form name="formulario" method="post" action="<?=$_SERVER['PHP_SELF']?>">
  50.  
  51. <input type="text" name="nombre">
  52. <a href="Javascript:enviar();" class="btnSend">Enviar</a>
  53.  
  54. </form>
  55. </body>
  56. </html>