In PHP you have three global arrays to accomplish this.
$_POST, $_GET which contains data sent through post method or get method
There is also $_REQUEST which contains the content found in $_POST + $_GET
to carry data between webpages, use $_SESSION['varname'] = value
To use sessions you also need to use the session_start(); method at the very beginning of your php file. like this:
-
<?php
-
session_start();
-
-
$_SESSION['attr_name'] = $value;
-
There can be no print action or even whitespace before the session_start() method