when we select some checkboxes and we went for next page if
we came back to prevoius page the selcted checkboxe should
be checked
Answer Posted / blessed
session variable is better than cookies
in the second page each values in $_session array or in
different $_session varibales.
like $_SESSION['chk1']=$_POST['chk1'];
and then if you go to previous page u will get the value
$chk1=$_SESSION['chk1'];
echo "".$chk1;
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
How do I run a php file?
What is input sanitization in php?
Which variable declarations within a class is invalid in php?
Is jquery better than javascript?
How to take a substring from a given string?
What is the integer?
Are php sessions cookies?
my english is not too good then what we apply for a php programer post
How can we define a variable accessible in functions of a php script?
Which method removes the last element from the end of an array?
Which function is used to read a file removing the html and php tags in it upwork?
What are the different loops in php?
What function should you use to join array elements with a glue string?
Tell me what are magic methods?
What difference between require() and require_once()?