Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want..

Answer / tarangini

using $_REQUEST[var]

Is This Answer Correct ?    4 Yes 0 No

Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want..

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

Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want..

Answer / srinivasan

$_SESSION['var']

Is This Answer Correct ?    2 Yes 0 No

Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want..

Answer / ajay

$var=$_REQUEST['var'];

Is This Answer Correct ?    1 Yes 0 No

Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want..

Answer / raja

using $_POST['var'];

Is This Answer Correct ?    1 Yes 0 No

Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want..

Answer / raju

$_POST["var"];

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More PHP Interview Questions

What is difference between array_merge and array_combine?

0 Answers  


What is the scope of a variable defined in a function?

0 Answers  


Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?

0 Answers  


Tell me how comfortable are you with writing html entirely by hand?

0 Answers  


How to make a class in php?

0 Answers  


full form of php??

12 Answers   HCL,


m new to xampp i want to configure file server in xampp... is it possible ??? if so help me....

0 Answers  


What is different types of visibility?

0 Answers  


When is a conditional statement ended with endif?

0 Answers  


What does the scope of variables means?

0 Answers  


What is the correct syntax of mail() function in php?

0 Answers  


Is server side a session?

0 Answers  


Categories