suve

awful: function: get-val

Declaration

string :get-val ( string $KEY )
string :get-val ( int $NUM )

Summary

When passed an int, returns the value of NUM-th URL parameter present. When passed a string, returns the value associated with given KEY.

Example

# GET test.
:writeln s'Get parameters set: ' :get-num
:set &C i0
!while :lt $C :get-num
    :writeln s'param' $C s': ' (:get-key $C) s'=' :get-val $C
    :add &C i1
    !fi

wikipage modified on 2014/0601/2317