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 compile time and run time polymorphism?

0 Answers  


What language is similar to php?

0 Answers  


How we can retrieve the data in the result set of mysql using php?

0 Answers  


How to increase the maximum execution time of a script in php?

0 Answers  


What kind of things have you done on the social side?

0 Answers  


Does mysql need php?

0 Answers  


Explain object-oriented methodology in php?

0 Answers  


Write a program to get lcm of two numbers using php?

0 Answers  


Which is better #define or enum?

0 Answers  


Write a statement to show the joining of multiple comparisons in php?

0 Answers  


How many days will it take to learn php?

0 Answers  


How many escape sequences are recognized in single-quoted strings?

0 Answers  


Categories