You can transfer information from "Data Input Page" to "Data processing page"
using form and $_REQUEST:
1. From Input Form to "Input page":
1.1 Submit the information by defining a form.
Each input field (including hidden input fields) will be transferred
to the next page using the form internal mechanism.
1.2 On the Data Input Page (called by the form using the Action TAG definition),
you can read the contents of the input fields from the first page using
the $ _REQUEST [] command.
Example:
index.php contain:
<form method="post" action="check.php">
<input name="login" type="text">
<input name="Submit1" type="submit" value="submit">
</form>
check.php will read the information set in the input (login) field using
the following:
$mylogin = $_REQUEST['login'];
The second option to transfer data from a PHP page to other PHP pages is,
through $_SESSION[] .
Example:
check.php contain:
session_start(); // to Initialize the session array
$_SESSION['login'] = $_REQUEST['login'];
Once this statement was used all the the php pages in the session,
will possess $_SESSION['login'] with the correct content.
delete $_SESSION: unset()