troubleshooting Question

Put POST values into cookies.

Avatar of Jazzy 1012
Jazzy 1012 asked on
JavaScriptPHP
14 Comments1 Solution138 ViewsLast Modified:
I get these variables from a form from a pervious page, how can I turn them into cookies so even if I go back they would stay? because now when I go back from the button, it doesn't show anymore
$value1 = $_POST['select_time1'];
$value2 = $_POST['select_time2'];
$value3 = $_POST['select_time3'];
$value4 = $_POST['select_time4'];
$value5 = $_POST['select_time5'];
$value6 = $_POST['select_time6'];

$protien_id = $_POST['protiens'];
$monday = $_POST['mon'];
$tuesday= $_POST['tues'];
$wednesday= $_POST['wed'];
$thursday = $_POST['thur'];
$friday = $_POST['fri'];
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 14 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros