suve

awful: function: post-val

Declaration

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

Summary

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

Example

# POST test.
:writeln s'POST values set: ' :post-num
:set &C i0
!while :lt $C :post-num
    :writeln s'val' $C s': ' (:post-key $C) s'=' :post-val $C
    :add &C i1
    !done

wikipage modified on 2014/0601/2317