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 difference between echo and print_r in php?

495


How do you measure variables?

522


Explain me what are the 3 scope levels available in php and how would you define them?

731


Write a program to get second highest number in an array using php?

532


For image work which library is used in php?

530






Is php faster than nodejs?

491


Can you give example for trait in php?

539


Which variable declarations within a class is invalid in php?

505


What is the difference between unset and unlink?

539


How failures in execution are handled with include() and require() functions?

592


How do I sort numbers in php?

540


How can you submit a form without a submit button?

529


Tell me how to create a text file in php?

548


Name some of the functions in php.

498


Is it possible to remove the html tags from data?

529