Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/07/2012, 23:42
Avatar de cristiantorres
cristiantorres
 
Fecha de Ingreso: marzo-2012
Mensajes: 383
Antigüedad: 12 años, 2 meses
Puntos: 61
No Puedo Pasar Variables Post ni Get

No puedo pasar variables en php no se si sea problemas del wampserver pero ya estuve haciendo bastantes pruebas y no he conseguido pasar ningun dato.

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  5. <title>Sin título 1</title>
  6. </head>
  7. <form action="get.php" method="get">
  8.         <input type="text" name="nombre" /><br />
  9.         <input type="text" name="apellido" /><br />
  10.         <input type="submit" value="enviar" />
  11.     </form>
  12. </body>
  13.  
  14. </html>

get.php
Código PHP:
Ver original
  1. <?php
  2.  
  3. if(isset($_GET['nombre']) && isset($_GET['apellido']))
  4. {
  5.     echo $_GET['nombre'];
  6.     echo "<br />";
  7.     echo $_GET['apellido'];
  8. }
  9. ?>

cual puede ser el problema ya probe con post y nada tampoco.
__________________
Visita mi Blog C#, vb.net, asp.net, sql, java y mas...
Blog Cristian Torres