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 is final in php?
Tell me how to create a session? How to set a value in session? How to remove data from a session?
which function used to get the file name in php?
where do we use htaccess?
What is the full form of PHP?
28 Answers Apple, Nandhini, PHP,
How do I run a php script in windows?
What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?
Explain php parameterized functions.
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
How we can convert dynamic url into static url? plz provide code.
Explain how we can retrieve the data in the result set of mysql using php?
1. Write a function to swap two values ? $a = 10; $b = 20; echo $a, $b; swap(); // If u want u can pass parameters echo $a, $b; // It should print 20 , 10
14 Answers Aquasol, Infosys, TCS, Torque Infotech,