2 Sep 2007 at 16:59 #1 GeForce GeForce 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
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
2 Sep 2007 at 17:16 #2 Gman Gman Soldato Joined 18 Oct 2002 Posts 4,925 Location Yorkshire 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.
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.
2 Sep 2007 at 18:27 #3 GeForce GeForce Soldato OP Joined 14 Feb 2006 Posts 4,644 Location Surrey, UK Thanks, got it. Silly mistake