PHP passing variables

mohamedismail

New member
Joined
Oct 1, 2013
Messages
3
Points
0
Hello,

How many ways we can pass the variable through the navigation between the pages?
 

Peter

New member
Joined
Jul 7, 2012
Messages
155
Points
0
Hello,

How many ways we can pass the variable through the navigation between the pages?
We have at least 3 ways
- Using session in first page and getting in next page
- Using cookie in first page and getting in next page
- Using hidden form field in first page and getting in next page

Hope it's useful for you!
 
Joined
Oct 5, 2013
Messages
5
Points
0
In the end you will be accessing it via $_COOKIE, $_SESSION, $_GET, $_POST, or $_REQUEST (both get/post). The info Peter gave is how it would be passed to get accessed via those methods.
 
Newer threads
Replies
27
Views
12,522
Replies
16
Views
9,073
Replies
3
Views
3,105
Latest threads
Replies
1
Views
76
Replies
0
Views
94
Replies
0
Views
155
Replies
3
Views
392
Recommended threads
Replies
9
Views
3,656
Replies
46
Views
16,138
Similar threads

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top