This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:create:functions:reference [24.01.2015 12:44] – [Example 2] alexander.ritter | en:create:functions:reference [25.03.2022 22:06] (current) – admin | ||
---|---|---|---|
Line 28: | Line 28: | ||
The use of the reference can be useful if other information is encoded within it. In the following example, social scientists would have " | The use of the reference can be useful if other information is encoded within it. In the following example, social scientists would have " | ||
- | Depending on the reference, question " | + | Depending on the reference, question " |
<code php> | <code php> | ||
Line 35: | Line 35: | ||
// No reference submitted (less than 1 character) | // No reference submitted (less than 1 character) | ||
goToPage(' | goToPage(' | ||
- | } elseif ($ref{0} == ' | + | } elseif ($ref[0] == ' |
question(' | question(' | ||
- | } elseif ($ref{0} == ' | + | } elseif ($ref[0] == ' |
question(' | question(' | ||
} else { | } else { |