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
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 |
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 |
What are the different tables(engine) present in mysql, which one is default?
What is the default session time in php?
What is difference between array_merge and array_combine in php?
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.
What is the purpose of using php?
What is good average session duration?
What is the function mysql_pconnect() usefull for?
Can I learn laravel without php?
How to randomly retrieve a value from an array?
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?
What is "echo" in php?
What is the role of php?