Passing a variable to an include page

Soldato
Joined
14 Feb 2006
Posts
4,644
Location
Surrey, UK
So I've got a php file which has the variable $ticketid.

Then later on in the page I include() another page. How can I let this page "see" the $ticketid variable?

TIA, Jon
 
it should automatically be able to see the variable so long as the include occurs after the variable is declared.

In effect all your doing with the include so copying the entire contents of the included file into the first file.
 
Back
Top Bottom