Page 1 of 1

problem transmiting variables over multiple pages

Posted: Thu Sep 29, 2005 4:41 am
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?

Posted: Thu Sep 29, 2005 5:52 am
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:

Posted: Thu Sep 29, 2005 6:32 am
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.