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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what should we do to be able to export data into an excel file?

519


Does browser understand php?

484


What is the definition of a session?

530


Which function(s) in PHP computes the difference of arrays?

573


Will a comparison of an integer 12 and a string "13" work in php?

535






Explain some of the php array functions?

572


How to replace a substring in a given string?

549


What is $_ files in php?

559


Which is better php or nodejs?

516


How to connect to mysql from a php script?

557


Why do you need to filter out empty files?

530


How do you check if a variable has not been set in php?

510


what the new feature add in php 7.2?

537


What is difference between include and include_once in php?

500


Which function is used to read a single character from a file in PHP.

559