Suppose a variable may passed to other page using any of
get,post,session,cookie methods and u want to retrive that
variable value . what is the syntax?
Answers were Sorted based on User's Feedback
Answer / deepinder
I agree with all the above answers. In addition i would
like to mention that we refer the variable with the name as
mentioned in the previous page to retrieve its value with
$_REQUEST[].
<input type="text" name="variable"> ---->previous page
$value=$_REQUEST['variable']; ------->next php page
| Is This Answer Correct ? | 4 Yes | 0 No |
Is session a cookie?
What is a php tag?
How a variable is declared in php?
What is PHP? Who is the father or inventor of PHP?
How does php work?
What is difference between required and require_once in php?
What does echo mean in php?
Explain the difference between session and cookies in php?
Whats the difference between include() and require()?
Write syntax to open a file in php?
What are the different ways to login to a remote server? Explain the means, advantages and disadvantages?
Can we extend final class in php?