problem transmiting variables over multiple pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sebs
Forum Commoner
Posts: 97
Joined: Tue Sep 20, 2005 10:13 am

problem transmiting variables over multiple pages

Post by sebs »

from one dinamic page I open a static one wich I can not modify and then a dinamic page.How can I pass the variables from the first to the third page?
Last edited by sebs on Thu Sep 29, 2005 6:03 am, edited 1 time in total.
User avatar
thomas777neo
Forum Contributor
Posts: 214
Joined: Mon Mar 10, 2003 6:12 am
Location: Johannesburg,South Africa

Post by thomas777neo »

Generally there are some standard ways of passing variables:

Sessions
Cookies
Url
Posting via form
Require / Include

Maybe record the variables in a session or cookie on the first page, then retrieve and unset it on the third page.

Please check your spelling and grammar before posting your code :roll:
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post by mickd »

could also make the variable global

Code: Select all

global $var;
but depending on the information your making global i wouldnt recommend it.
Post Reply