Entry
When I process a form by a .php file, the variables from the form are not availbale in the .php file
Jul 15th, 2002 22:02
Tim Parkinson, az az,
Since PHP 4.0.3 the track_vars configuration directive has been turned
off by default. This is a security measure to stop people setting
random vars by simply passing them in the URL string. If you didn't
implicitly set a variable within your script this could cause problems.
For this reason I would leave track_vars turned off.
The way to access the form variables is by the arrays $_GET and $_POST
depending on what your form is using. So if you have a text input
called name in your form, just do:
$name = $_POST['name'];
To access it.