<pre>-- Returns a line-delimited list from an ampersand-delimited list.-- Commonly used for parsing URL-encoded data posted to a CGI.function parse postItems  set the itemDelimiter to the numToChar of 38 -- ampersand  repeat with x = 1 to the number of items of postItems    put item x of postItems into line x of postLines  end repeat  return postLinesend parsefunction parse postItems  put the numToChar of 38 into ampersand  repeat    put offset(ampersand,postItems) into index    if index is 0 then exit repeat    put return into char index of postItems  end repeat  return postItemsend parse</pre>