Forum Moderators: coopster

Message Too Old, No Replies

passing a variable from one .php to another.. help

         

red_imp

10:40 pm on Mar 23, 2004 (gmt 0)



first let me tell you what i want to do.. i use a language file, where all my variables are declared ( english.php ).

on my index.php page i use $_GET to select the language.. so that is
index.php?lng=english

my question is how can i transmit my variable $lng to my other pages.. i know that it might seem a very dumn question to you.. but.. i'm just learning.. so please.. can anyone help me..?

Timotheos

11:33 pm on Mar 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

You'll want to look into using cookies [php.net] or sessions [php.net]. Both of these make it easy to preserve state.