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

What are the different tables(engine) present in mysql, which one is default?

0 Answers  


What is the default session time in php?

0 Answers  


What is difference between array_merge and array_combine in php?

0 Answers  


how can i find number of rows in a table using MS Access and php? i used odbc_num_rows($query); but it returned -1.

1 Answers  


What is the purpose of using php?

0 Answers  






What is good average session duration?

0 Answers  


What is the function mysql_pconnect() usefull for?

0 Answers  


Can I learn laravel without php?

0 Answers  


How to randomly retrieve a value from an array?

0 Answers  


To run php script on a local machine we need to install Apache http server and php. Then only scripts are run in the browsers. but when these things are not loaded on a local machine and a php script is brought by the browser still the browser displays the page. how?

2 Answers  


What is "echo" in php?

0 Answers  


What is the role of php?

0 Answers  


Categories