How does one pass a PHP variable stored on one page that is NOT in a form, go to another page where a function uses it?
The reason I need this is so a user can adjust their form they are using by adding more rows with a submit button.
This is what I want to achieve:
$maxrows = stores the total amount of rows currently on the page
user presses "add more rows button"
another page is loaded which has a function which adds $maxrows + 5
once complete, the page redirects to the form
the form redisplays the page with 5 more rows
Any ideas how this can be implemented?
Thanks
Preferably not in a session if possible!
$_SESSION["my_max_rows"] = 13;will be safe. If you don't want to change the name on your pages you can just assign it back out.$max_rows = $_SESSION["my_max_rows"];