when we select some checkboxes and we went for next page if
we came back to prevoius page the selcted checkboxe should
be checked

Answers were Sorted based on User's Feedback



when we select some checkboxes and we went for next page if we came back to prevoius page the sel..

Answer / 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

when we select some checkboxes and we went for next page if we came back to prevoius page the sel..

Answer / lamp

Store the Checkbox values in cookie, you can fetch the
cookie value when u come to this page again

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More PHP Interview Questions

How do you format and output a number with leading zero's?

3 Answers  


What is the delimiter syntax is PHP's default delimiter syntax

0 Answers  


What is echo in html?

0 Answers  


What is variable declaration?

0 Answers  


What is phpsessid?

0 Answers  






What is difference between sql and php?

0 Answers  


Which is not a file-related function in php?

0 Answers  


What is default session time and path in PHP. How to change it?

0 Answers  


How do i explode this string '||25||34||73||94||116||128' i need to have a array like this array ( 0 => '25', 1 => '34', 2 => '73', 3 => '94', 4 => '116', 5 => '128' ) explode("||", $array); didnt work for me i get this array array ( 0 => '', 1 => '25', 2 => '34', 3 => '73', 4 => '94', 5 => '116', 6 => '128', )

2 Answers  


What are the core OOP’s concepts?

2 Answers  


What is the meaning of curl , which is used while connecting with pay pal? and how it works?

2 Answers  


How check variable is set or not in php?

0 Answers  


Categories