Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/01/2013, 10:16
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Problema al pasar variable URL en PHP

Lee lo siguiente: http://www.php.net/variables.external

Recuerda que en PHP las variables, todas empiezan con $, así que te debe de funcionar:

Código PHP:
Ver original
  1. <?php
  2. $var = 'hola';
  3. ?>
  4. <a href="otroscript.php?var=<?php echo $var; ?>">Otro Script</a>

// otroscript
Código PHP:
Ver original
  1. <?php
  2. $var = $_GET['var'];
  3. echo $var;