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...


How many ways are there for passing variables between pages
in PHP and what are they ?

Answers were Sorted based on User's Feedback



How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / vinod kumar wedhera

get(in url) ,Post (through form),Session,Cookies there are
four ways to pass the variable

Is This Answer Correct ?    12 Yes 0 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / guest

As far as my knowledge there are four ways .They are Pass
the variable in URL,through a session,via a COOKIE or with
an HTML form.

Is This Answer Correct ?    9 Yes 2 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / laku

create the session store the values in it and call in the
next page
create the cookie store the values in it and call in the
next page
and finally hidden values

Is This Answer Correct ?    5 Yes 0 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / prasanna

GET,
POST,
SESSION,
COOKIE

Is This Answer Correct ?    4 Yes 0 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / guest

you can use querystring also

Is This Answer Correct ?    4 Yes 1 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / shivu

Hidden fields
Session
Cookies
URL using ? symbol

Is This Answer Correct ?    2 Yes 0 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / ram kaushik

1.Session
2.GET
3.Post
4.using header() function
5.using window.location function
6.using hidden field]
7.cookies
8.query string
9.using ajax function

Is This Answer Correct ?    3 Yes 1 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / prince antony

1. GET (url)
2. POST (html form)
3. SESSION (For each browser)
4. COOKIES (For Browser and in system cache)
5. FILES (File Names and size)
6. HTTP (For Jquery method Ajax string JSON)

Is This Answer Correct ?    2 Yes 0 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / amit

i think there are more than 4 methods as i know
1.through url
2.through form
3.through coockies
4.session
5.hidden variables
6.through header

Is This Answer Correct ?    1 Yes 1 No

How many ways are there for passing variables between pages in PHP and what are they ?..

Answer / lekha r nair

1.Session
2.Cookies
3.Query string
4.Header
5.Hidden Field
6.GET
7.POST

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More PHP Interview Questions

Write a program in php to reverse a number?

0 Answers  


How about integrating an iKode Newsletter Server at my independent Wordpress blog site? I just wanna visitort can subscribe my blog when they like it and I can send some interested articles or events to them regularly to establish good relationship.

1 Answers   iKode,


Is php still used?

0 Answers  


What is difference between required and require_once in php?

0 Answers  


What is the use of header() function in php?

0 Answers  


What is a simple php method to make a cross domain data request?

0 Answers  


Why do we use javascript in php?

0 Answers  


Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?

0 Answers  


How to store the uploaded file to the final location?

0 Answers  


Explain the casts allowed in PHP?

0 Answers  


Why should I store logs in a database rather than a file?

0 Answers  


What is $_session in php?

0 Answers  


Categories