Code Example

Data sent via the URL

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:

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.


Dynamic Result