Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<?php_track_vars?> is no longer supported???

Status
Not open for further replies.

YA

Programmer
Aug 13, 2001
37
US
Hi!

I am using PHP4.2.0 and having problems with track_vars INI directive.

When I pass a variable($sender_email) to another page(.php) with POST method, I get this error:


Undefined variable: sender_email



I know that <?php_track_vars?> is no longer supported and I dont need to do anything with it because track_vars is always enabled. BUT it does not work..What should I do??

Thanks very much for your help.
 
As of PHP 4.2.0 register_globals=OFF, so oyu can change that in your .ini file to ON and you'll be OK.

The suggested and preferred way is to referance variable via some new array structures:$_POST[], $_GET[], $_SESSIONS[], $_ENV.

So, if you're posting a form the variables would be available like: $var = $_POST['var']

Check the manual for &quot;pre-defined variable&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top