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


Please Help Members By Posting Answers For Below Questions

What is preg_match?

544


What are the array functions in php?

530


What is php compared to html?

543


What is a simple php method to make a cross domain data request?

524


What is difference between post and put in rest?

521






what are interfaces and Abstart classes

1467


What is mysqli_real_escape_string?

529


Code to upload a file in PHP?

561


What is session php?

513


What are the advantages of triggers in php?

479


Why ide is recommended for use while programming with php?

510


Where to put php files in apache server?

507


What is abstract class in php?

517


Can I learn laravel without php?

575


Tell me will a comparison of an integer 12 and a string "13" work in php?

658