Code Example |
|
1 |
There are two primary ways to pass data between web pages. The first and probably easiest is through the use of 'get' variables. Your variables are passed as part of a page's URL and are added with the following syntax:
http://www.yoururl.com?variabableName1=value&...
The LiveCode server engine processes these variables into an array called $_GET[]. The keys of the array will be your variable names. For the purposes of this example we have created a number of URLs linking to this page. The code snippet looks to see if a variable is true or not and if so, sets the text to be a darker colour. Click on the links below to see the effect.
get.lc?variable1=true
get.lc?variable2=true
get.lc?variable3=true
get.lc?variable1=true&variable2=true&variable3=true