Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/02/2012, 13:12
bartman742
 
Fecha de Ingreso: enero-2012
Mensajes: 64
Antigüedad: 12 años, 3 meses
Puntos: 0
informacion de cuadro de texto no se muestra

hola, tengo el siguiente codigo:

Código PHP:
Ver original
  1. <?php
  2.            
  3.  
  4. echo '<head>
  5.            
  6.  
  7.              <title>'.$_SERVER[PHP_SELF].'</title>
  8.            
  9.  
  10.      </head>
  11.            
  12.  
  13.      <html>
  14.            
  15.  
  16.      <body>';
  17.        echo "<input type=text id='v11'>";
  18.  
  19. echo '<script languaje="JavaScript">
  20.            
  21.  
  22.      var varjs=document.getElementById("v11").value;
  23.            
  24.  
  25. </script>';
  26. if (! isset($_POST[variable_php]))
  27.            
  28.  
  29. {
  30.            
  31.  
  32.       echo '<form action="'.$_SERVER[PHP_SELF].'" method=post name=pasar>
  33.            
  34.  
  35.              <input type=text name=variable_php></form>';
  36.            
  37.  
  38.       echo '<script languaje="JavaScript">
  39.            
  40.  
  41.              document.pasar.variable_php.value=varjs;
  42.            
  43.  
  44.              document.pasar.submit();
  45.            
  46.  
  47. </script>';  
  48.            
  49.  
  50. }    
  51.            
  52.       echo "Valor de la variable en PHP: $_POST[variable_php] <br>";
  53.            
  54.  
  55. echo "<a href=$_SERVER[PHP_SELF]>Recargar la Página</a>";
  56.            
  57.  
  58. echo '</body>
  59.            
  60.  
  61.      </html>';
  62. ?>

lo que se supone que deberia hacer es que en el cuadro de texto al escribirle algo deberia cambiar el valor de la variable php y mostrarla en pantalla, pero por alguna razon no lo hace, me podrian decir donde se encuentra la falla?