Can you save a variable to post in php to pickup on another page? I only know how to retrieve a post variable, or is this where you should use session instead. I don't want to save my variable on the end of the url and use get.
2
-
Are you calling the other page from the PHP script? If so, how are you doing this? e.g. by calling its URL, or including it in the current script?Travesty3– Travesty32012-03-01 17:05:56 +00:00Commented Mar 1, 2012 at 17:05
-
1Use session variables instead.j08691– j086912012-03-01 17:07:51 +00:00Commented Mar 1, 2012 at 17:07
Add a comment
|
2 Answers
This is where you might want to use $_SESSION variables, instead of $_POST.
See: http://php.net/manual/en/reserved.variables.session.php