Just learning about passing variables from page to page in php, and trying to find the best way to do so for me, as I have to pass ~10 variables between 5 pages. On the first page, does it make sense to have a form:
<form method="post">
<input type="hidden" name="test" value="<?php $test ?>" />
</form>
Then on the next page could I receive this variable using POST
? I would not like to have an ACTUAL form, just use it as a storage area for my variables. Also, what do I use for action=
if the second page is called second.php.
Any help is appreciated, thanks