How many ways are there for passing variables between pages
in PHP and what are they ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
1.Session
2.Cookies
3.Query string
4.Header
5.Hidden Field
6.GET
7.POST
Is This Answer Correct ? | 2 Yes | 2 No |
how to track no of users logged in?
Why print_r is used in php?
what is the post and get method??
What is php namespace?
How long does a session last in php?
Explain about a search-friendly site looks like?
Explain me soundex() and metaphone()?
What is the difference between indexed and associative array?
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
HOW we can use css
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
Which php mvc framework is best?