Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Value from one page to then form this page to next Re: Value from one page to then form this page to next

#138887
__
Participant

are you trying to get values submitted from a form to be automatically available in your script, as in (for example) `$name`, instead of having to do `$_POST`?

If so, be advised that this is a **very bad idea**. `register_globals` used to do this (it has since been **deprecated** and **removed**). Go read the PHP manual page on [using register_globals](http://php.net/manual/en/security.globals.php).

You should not try to duplicate this functionality. It is a severe security risk. Instead, always take the time to deliberately **validate** _(check that the value IS what it is SUPPOSED TO BE)_ and **sanitize** _(make the value SAFE TO USE, e.g., to put in the database, to print to the browser, etc.)_ **all user input**.

remember,

## NEVER TRUST USER INPUT.