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
What’s the difference between htmlentities() and htmlspecialchars()?
Is php a strongly typed language?
How to get the length of string?
Does php class need constructor?
Write a program in php to check whether a number is prime or not?
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
Explain what is the difference between session and cookie?
What is x+ mode in fopen() used for?
Explain me differences between get and post methods?
What is memcache?
What is __ invoke in php?
Which is better php or wordpress?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
Why is php used?
Explain php parameterized functions.