Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/08/2002, 05:55
Avatar de Necros
Necros
 
Fecha de Ingreso: enero-2002
Ubicación: Catalunya
Mensajes: 431
Antigüedad: 22 años, 2 meses
Puntos: 0
Re: paso de variables

El problema esta claro, debido a un BUg de seguridad de hace unois mesees el paso de variables en PHP se restringe a unos arrays internos de consulta, si deseas que funcione de modo abierto sólo debes retocar el fichero php.ini

Extracto de http://www.php.net
In PHP 4.2.0 and later, the default value for the PHP directive register_globals is off. This is a major change in PHP. Having register_globals off affects the set of predefined variables available in the global scope. For example, to get DOCUMENT_ROOT you'll use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of $id, or $_ENV['HOME'] instead of $HOME.

For related information on this change, read the configuration entry for register_globals, the security chapter on Using Register Globals , as well as the PHP 4.1.0 and 4.2.0 Release Announcements.

Using the available PHP Reserved Predefined Variables, like the superglobal arrays, is preferred.


En definitiva, lo que debes hacer es consultar las variables pasadas en el array determinado, como veo que el formulario lo envias con el metodo POST, la recogida seria :

<?=$_POST['$nombre']?>

Si lo pasas por GET = $_GET[''],
SESSIONES : $_SESSION[''],
COOKIES : $_COOKIE[''],

!!! Q te vaya bién el PHP.




By NeCrOS
http://www.necros.com

FrEe WoRlD is FrEE CoDE
-----------------------