For passing values trough successives pages, I use $_SESSION variable.
Here is a simple function I've created:
function getvalue($fieldname){
if (isset($_GET[$fieldname]))
return $_GET[$fieldname];
elseif (isset($_SESSION[$fieldname]))
return $_SESSION[$fieldname];
elseif (isset($_POST[$fieldname]))
return $_POST[$fieldname];
else
return "";
}
I've this form:
<form name="ReturnBack" method="GET" action="/index.php?">
<center><input type="Submit" name="SubmitButton"
value="Retour"></center></form>
in the index.php page, when I show the SubmitButton value, I get "Search",
the one set in the $_SESSION["SubmitButton"]
Why the $_GET["SubmitButton"] value is empty ?? The Submit type doesn't set
the value ????