The cause for your problem would be that register_globals defaults to off in
PHP 4.2.x and greater.
The solution? Start using the new superglobals ($_POST, $_GET, $_SESSION
etc) or (not recomended) set register_globals = on in php.ini
Read more here:
> -----Original Message-----
> From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 3:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Purpose of $$var ?????
> The script was working great before PHP 4.2.x and not after
> that. So, I
> looked through the code and came upon this variable, "$$var".
> I have no
> idea what the purpose of the double "$" is for a variable.
> Anyone know?
> $var = "v".$counter."_high_indiv";
> $val3 = $$var;
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php