query. Getting the query string

$request:query

Returns the string coming after
? in URI (the value of environment variable QUERY_STRING).
To work with form fields (
<FORM>) and string after second ? (/?a=b?thisText), use class form.

Example
Let us assume, a visitor requests page at

http://www.mysite.ru/news/index.html?year=2000&month=05&day=27

then

$request:query

will return

year=2000&month=05&day=27


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 30.03.2004